From 9f4afcd9449ccf822b123b990068a27089db4ffe Mon Sep 17 00:00:00 2001 From: Quantum Date: Mon, 9 Aug 2021 19:23:43 -0400 Subject: [PATCH] [common] crash: use DEBUG_WINERROR on windows --- common/src/platform/windows/crash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/platform/windows/crash.c b/common/src/platform/windows/crash.c index d5081649..2a203bbe 100644 --- a/common/src/platform/windows/crash.c +++ b/common/src/platform/windows/crash.c @@ -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);