| 143 | } |
| 144 | |
| 145 | static 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 | |
| 157 | bool CrashHandler::Install() |
| 158 | { |
nothing calls this directly
no test coverage detected