| 412 | LONG(WINAPI* g_original_exception_filter)(EXCEPTION_POINTERS*) = nullptr; |
| 413 | |
| 414 | LONG WINAPI UnhandledExceptionHandler(EXCEPTION_POINTERS* exception_pointers) { |
| 415 | MetricsRecordExit(Metrics::LifetimeMilestone::kCrashed); |
| 416 | Metrics::HandlerCrashed(exception_pointers->ExceptionRecord->ExceptionCode); |
| 417 | |
| 418 | if (g_original_exception_filter) |
| 419 | return g_original_exception_filter(exception_pointers); |
| 420 | else |
| 421 | return EXCEPTION_CONTINUE_SEARCH; |
| 422 | } |
| 423 | |
| 424 | // Handles events like Control-C and Control-Break on a console. |
| 425 | BOOL WINAPI ConsoleHandler(DWORD console_event) { |
nothing calls this directly
no test coverage detected