diff --git a/src/debug.c b/src/debug.c index 93197cf..6b9d12d 100644 --- a/src/debug.c +++ b/src/debug.c @@ -46,7 +46,7 @@ int dbg_exception_handler(EXCEPTION_POINTERS* exception) CloseHandle(dmp); } - if (exception && ExceptionRecord) + if (exception && exception->ExceptionRecord) { dbg_printf( "Exception at %p (%08X)\n",