mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
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:
parent
679979b6b2
commit
f49b3c3dff
3 changed files with 6 additions and 4 deletions
|
@ -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 *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue