Crashlog: Update thread/lock handling to match GameLoop changes

This commit is contained in:
Jonathan G Rennison
2021-04-06 03:53:01 +01:00
parent d452517c66
commit 63ddf7f587
10 changed files with 72 additions and 33 deletions

View File

@@ -639,6 +639,8 @@ static LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS *ep)
ExitProcess(3);
}
VideoDriver::EmergencyAcquireGameLock(1000, 5);
CrashLogWindows *log = new CrashLogWindows(ep);
CrashLogWindows::current = log;
char *buf = log->FillCrashLog(log->crashlog, lastof(log->crashlog));