From 241724d1d86c7386c050e4b96bc443efd489f300 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 13 Feb 2006 22:05:30 +0000 Subject: [PATCH] do SetErrorMode before the crash handler --- stepmania/src/arch/ArchHooks/ArchHooks_Win32.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stepmania/src/arch/ArchHooks/ArchHooks_Win32.cpp b/stepmania/src/arch/ArchHooks/ArchHooks_Win32.cpp index ae01e528f9..644702a542 100644 --- a/stepmania/src/arch/ArchHooks/ArchHooks_Win32.cpp +++ b/stepmania/src/arch/ArchHooks/ArchHooks_Win32.cpp @@ -17,15 +17,15 @@ ArchHooks_Win32::ArchHooks_Win32() TimeCritMutex = NULL; HOOKS = this; + /* Disable critical errors, and handle them internally. We never want the + * "drive not ready", etc. dialogs to pop up. */ + SetErrorMode( SetErrorMode(0) | SEM_FAILCRITICALERRORS ); + CrashHandler::CrashHandlerHandleArgs( g_argc, g_argv ); SetUnhandledExceptionFilter( CrashHandler::ExceptionHandler ); TimeCritMutex = new RageMutex("TimeCritMutex"); - /* Disable critical errors, and handle them internally. We never want the - * "drive not ready", etc. dialogs to pop up. */ - SetErrorMode( SetErrorMode(0) | SEM_FAILCRITICALERRORS ); - /* Windows boosts priority on keyboard input, among other things. Disable that for * the main thread. */ SetThreadPriorityBoost( GetCurrentThread(), TRUE );