mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +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);
|
CloseHandle(dmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
dbg_printf(
|
if (exception && ExceptionRecord)
|
||||||
"Exception at %p (%08X)\n",
|
{
|
||||||
exception->ExceptionRecord->ExceptionAddress,
|
dbg_printf(
|
||||||
exception->ExceptionRecord->ExceptionCode);
|
"Exception at %p (%08X)\n",
|
||||||
|
exception->ExceptionRecord->ExceptionAddress,
|
||||||
|
exception->ExceptionRecord->ExceptionCode);
|
||||||
|
}
|
||||||
|
|
||||||
return EXCEPTION_EXECUTE_HANDLER;
|
return EXCEPTION_EXECUTE_HANDLER;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user