Windows: Improve private symbol detection
To detect if private of public symbols were loaded we were relying on a strcmp with a known filename, which was not great, the symbol api has a field we can query which should be more flexible and reliable.
This commit is contained in:
parent
cc1fb9d177
commit
a1c2441390
Notes:
blender-bot
2023-02-14 08:06:35 +01:00
Referenced by issue #76578, Driven bone's visibility in the outliner has no color(purple) indication of their status.
|
@ -309,8 +309,7 @@ static bool bli_private_symbols_loaded()
|
|||
IMAGEHLP_MODULE64 m64;
|
||||
m64.SizeOfStruct = sizeof(m64);
|
||||
if (SymGetModuleInfo64(GetCurrentProcess(), (DWORD64)GetModuleHandle(NULL), &m64)) {
|
||||
PathStripPath(m64.LoadedPdbName);
|
||||
return BLI_strcasecmp(m64.LoadedPdbName, "blender_private.pdb") == 0;
|
||||
return m64.GlobalSymbols;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue