mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[common] crash: use DEBUG_WINERROR on windows
This commit is contained in:
parent
4f1136d0cd
commit
9f4afcd944
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user