do SetErrorMode before the crash handler
This commit is contained in:
@@ -17,15 +17,15 @@ ArchHooks_Win32::ArchHooks_Win32()
|
|||||||
TimeCritMutex = NULL;
|
TimeCritMutex = NULL;
|
||||||
HOOKS = this;
|
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 );
|
CrashHandler::CrashHandlerHandleArgs( g_argc, g_argv );
|
||||||
SetUnhandledExceptionFilter( CrashHandler::ExceptionHandler );
|
SetUnhandledExceptionFilter( CrashHandler::ExceptionHandler );
|
||||||
|
|
||||||
TimeCritMutex = new RageMutex("TimeCritMutex");
|
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
|
/* Windows boosts priority on keyboard input, among other things. Disable that for
|
||||||
* the main thread. */
|
* the main thread. */
|
||||||
SetThreadPriorityBoost( GetCurrentThread(), TRUE );
|
SetThreadPriorityBoost( GetCurrentThread(), TRUE );
|
||||||
|
|||||||
Reference in New Issue
Block a user