[upstream_utils] Fix stackwalker (#4265)

This commit is contained in:
PJ Reiniger
2022-05-25 00:51:32 -04:00
committed by GitHub
parent 3e13ef42eb
commit 553b2a3b12
7 changed files with 1516 additions and 20 deletions

View File

@@ -1,4 +1,4 @@
/**********************************************************************
/**********************************************************************
*
* StackWalker.cpp
* https://github.com/JochenKalmbach/StackWalker
@@ -485,8 +485,8 @@ private:
if (hToolhelp == NULL)
continue;
createToolhelp32Snapshot = (tCT32S)GetProcAddress(hToolhelp, "CreateToolhelp32Snapshot");
module32First = (tM32F)GetProcAddress(hToolhelp, strModule32First);
module32Next = (tM32N)GetProcAddress(hToolhelp, strModule32Next);
module32First = (tM32F)GetProcAddress(hToolhelp, strModule32First);
module32Next = (tM32N)GetProcAddress(hToolhelp, strModule32Next);
if ((createToolhelp32Snapshot != NULL) && (module32First != NULL) && (module32Next != NULL))
break; // found the functions!
FreeLibrary(hToolhelp);