Fix recursive faults in Window crash logger due to message box event loop.

This commit is contained in:
Jonathan G Rennison
2017-02-19 12:56:56 +00:00
parent c2825c12ea
commit 102405e082
4 changed files with 28 additions and 0 deletions

View File

@@ -21,6 +21,7 @@
#include "../../gamelog.h"
#include "../../saveload/saveload.h"
#include "../../video/video_driver.hpp"
#include "../../openttd.h"
#if defined(WITH_DEMANGLE)
#include <cxxabi.h>
#endif
@@ -532,6 +533,8 @@ void *_safe_esp = NULL;
static LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS *ep)
{
_in_event_loop_post_crash = true;
if (CrashLogWindows::current != NULL) {
CrashLog::AfterCrashLogCleanup();
ExitProcess(2);