From 6ff5eba04d73cce078c5552077f414e6766c4851 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 23 Feb 2004 00:47:18 +0000 Subject: [PATCH] Forcibly terminate after a crash. --- stepmania/src/archutils/Win32/Crash.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/archutils/Win32/Crash.cpp b/stepmania/src/archutils/Win32/Crash.cpp index f9a2299461..c5273745fd 100644 --- a/stepmania/src/archutils/Win32/Crash.cpp +++ b/stepmania/src/archutils/Win32/Crash.cpp @@ -241,6 +241,10 @@ long __stdcall CrashHandler(EXCEPTION_POINTERS *pExc) SetUnhandledExceptionFilter(NULL); + /* Forcibly terminate; if we keep going, we'll try to shut down threads and do other + * things that may deadlock, which is confusing for users. */ + TerminateProcess( GetCurrentProcess(), 0 ); + return EXCEPTION_EXECUTE_HANDLER; }