mingw32 unicode fixups

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21955 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2005-11-05 16:20:19 +00:00
parent 44a6542243
commit e6fd4ca0d1
18 changed files with 314 additions and 191 deletions

View file

@ -292,14 +292,14 @@ objc_unload_modules(FILE *errorStream,
NSString *
objc_get_symbol_path(Class theClass, Category *theCategory)
{
char buf[MAX_PATH];
unichar buf[MAX_PATH];
MEMORY_BASIC_INFORMATION memInfo;
NSCAssert(!theCategory, @"objc_get_symbol_path doesn't support categories");
VirtualQueryEx(GetCurrentProcess(), theClass, &memInfo, sizeof(memInfo));
if (GetModuleFileName(memInfo.AllocationBase, buf, sizeof(buf)))
if (GetModuleFileNameW(memInfo.AllocationBase, buf, sizeof(buf)))
{
return [NSString stringWithCString:buf];
return [NSString stringWithCharacters: buf length: wcslen(buf)];
}
return 0;
}