mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-05-30 21:51:28 +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/crash.h"
|
||||||
#include "common/debug.h"
|
#include "common/debug.h"
|
||||||
#include "common/version.h"
|
#include "common/version.h"
|
||||||
|
#include "common/windebug.h"
|
||||||
|
|
||||||
#ifdef ENABLE_BACKTRACE
|
#ifdef ENABLE_BACKTRACE
|
||||||
|
|
||||||
@ -90,7 +91,7 @@ static LONG CALLBACK exception_filter(EXCEPTION_POINTERS * exc)
|
|||||||
|
|
||||||
if (!SymInitialize(GetCurrentProcess(), NULL, TRUE))
|
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;
|
goto fail;
|
||||||
}
|
}
|
||||||
SymSetOptions(SYMOPT_LOAD_LINES);
|
SymSetOptions(SYMOPT_LOAD_LINES);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user