fix missing include

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25856 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2008-01-04 10:32:07 +00:00
parent 679979b6b2
commit f49b3c3dff
3 changed files with 6 additions and 4 deletions

View file

@ -260,15 +260,16 @@ NSString *
GSPrivateSymbolPath(Class theClass, Category *theCategory)
{
unichar buf[MAX_PATH];
NSString *s = nil;
MEMORY_BASIC_INFORMATION memInfo;
NSCAssert(!theCategory, @"GSPrivateSymbolPath doesn't support categories");
VirtualQueryEx(GetCurrentProcess(), theClass, &memInfo, sizeof(memInfo));
if (GetModuleFileNameW(memInfo.AllocationBase, buf, sizeof(buf)))
{
return [NSString stringWithCharacters: buf length: wcslen(buf)];
s = [NSString stringWithCharacters: buf length: wcslen(buf)];
}
return 0;
return s;
}
#else
NSString *