[common] crash: use DEBUG_WINERROR on windows

This commit is contained in:
Quantum authored and Geoffrey McRae committed 2021-08-11 02:41:33 +10:00
1 parent 4f1136d0cd
commit 9f4afcd944
1 file changed
+2 -1
+2 -1
View File
@@ -21,6 +21,7 @@
#include "common/crash.h"
#include "common/debug.h"
#include "common/version.h"
#include "common/windebug.h"
#ifdef ENABLE_BACKTRACE
@@ -90,7 +91,7 @@ static LONG CALLBACK exception_filter(EXCEPTION_POINTERS * exc)
if (!SymInitialize(GetCurrentProcess(), NULL, TRUE))
{
DEBUG_ERROR("Failed to SymInitialize: 0x%08lx, could not generate stack trace", GetLastError());
DEBUG_WINERROR("Failed to SymInitialize, could not generate stack trace", GetLastError());
goto fail;
}
SymSetOptions(SYMOPT_LOAD_LINES);