1
0
Fork 0

Fix #7970: [Win32] Disable event loop on crash to prevent recursive faults

pull/8287/head
glx 2020-05-29 16:14:53 +02:00 committed by Charles Pigott
parent 2748a90bc9
commit 911f9165cf
1 changed files with 3 additions and 0 deletions

View File

@ -540,6 +540,9 @@ void *_safe_esp = nullptr;
static LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS *ep)
{
/* Disable our event loop. */
SetWindowLongPtr(GetActiveWindow(), GWLP_WNDPROC, (LONG_PTR)&DefWindowProc);
if (CrashLogWindows::current != nullptr) {
CrashLog::AfterCrashLogCleanup();
ExitProcess(2);