disable "drive not ready", etc. dialogs

This commit is contained in:
Glenn Maynard
2004-05-01 01:44:07 +00:00
parent 41662b7239
commit 53fd27b885
@@ -17,6 +17,10 @@ ArchHooks_Win32::ArchHooks_Win32()
{
SetUnhandledExceptionFilter(CrashHandler);
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 );
}
ArchHooks_Win32::~ArchHooks_Win32()