Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Molenkamp <github@lazydodo.com>2020-05-08 18:46:39 +0300
committerRay Molenkamp <github@lazydodo.com>2020-05-08 18:46:39 +0300
commita1c2441390e6b56da53dd914a6d6a81de84dc46c (patch)
tree707c5fc557125a2d1731131fbd3b26ed62316c5d
parentcc1fb9d1779c35edef0e5a7771bd7e35984561fd (diff)
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.
-rw-r--r--source/blender/blenlib/intern/system_win32.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/system_win32.c b/source/blender/blenlib/intern/system_win32.c
index 115432bc7d5..5a633755c79 100644
--- a/source/blender/blenlib/intern/system_win32.c
+++ b/source/blender/blenlib/intern/system_win32.c
@@ -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;
}