1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

add NULL checks to exception handler

This commit is contained in:
FunkyFr3sh 2022-09-25 15:12:13 +02:00
parent 3e0c93443e
commit 39f9383241

View File

@ -46,10 +46,13 @@ int dbg_exception_handler(EXCEPTION_POINTERS* exception)
CloseHandle(dmp);
}
dbg_printf(
"Exception at %p (%08X)\n",
exception->ExceptionRecord->ExceptionAddress,
exception->ExceptionRecord->ExceptionCode);
if (exception && ExceptionRecord)
{
dbg_printf(
"Exception at %p (%08X)\n",
exception->ExceptionRecord->ExceptionAddress,
exception->ExceptionRecord->ExceptionCode);
}
return EXCEPTION_EXECUTE_HANDLER;
}