add NULL checks to exception handler
This commit is contained in:
parent
3e0c93443e
commit
39f9383241
1 changed files with 7 additions and 4 deletions
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…
Add table
Add a link
Reference in a new issue