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:
parent
3e0c93443e
commit
39f9383241
11
src/debug.c
11
src/debug.c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user