MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / ExceptionHandler

Function ExceptionHandler

common/CrashHandler.cpp:145–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145static LONG NTAPI ExceptionHandler(PEXCEPTION_POINTERS exi)
146{
147 // if the debugger is attached, or we're recursively crashing, let it take care of it.
148 if (!s_in_crash_handler)
149 WriteMinidumpAndCallstack(exi);
150
151 // returning EXCEPTION_CONTINUE_SEARCH makes sense, except for the fact that it seems to leave zombie processes
152 // around. instead, force ourselves to terminate.
153 TerminateProcess(GetCurrentProcess(), 0xFEFEFEFEu);
154 return EXCEPTION_CONTINUE_SEARCH;
155}
156
157bool CrashHandler::Install()
158{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected