add NULL checks to exception handler
This commit is contained in:
parent
3e0c93443e
commit
39f9383241
1 changed files with 7 additions and 4 deletions
|
@ -46,10 +46,13 @@ int dbg_exception_handler(EXCEPTION_POINTERS* exception)
|
||||||
CloseHandle(dmp);
|
CloseHandle(dmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (exception && ExceptionRecord)
|
||||||
|
{
|
||||||
dbg_printf(
|
dbg_printf(
|
||||||
"Exception at %p (%08X)\n",
|
"Exception at %p (%08X)\n",
|
||||||
exception->ExceptionRecord->ExceptionAddress,
|
exception->ExceptionRecord->ExceptionAddress,
|
||||||
exception->ExceptionRecord->ExceptionCode);
|
exception->ExceptionRecord->ExceptionCode);
|
||||||
|
}
|
||||||
|
|
||||||
return EXCEPTION_EXECUTE_HANDLER;
|
return EXCEPTION_EXECUTE_HANDLER;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue