disable "drive not ready", etc. dialogs
This commit is contained in:
@@ -17,6 +17,10 @@ ArchHooks_Win32::ArchHooks_Win32()
|
|||||||
{
|
{
|
||||||
SetUnhandledExceptionFilter(CrashHandler);
|
SetUnhandledExceptionFilter(CrashHandler);
|
||||||
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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
ArchHooks_Win32::~ArchHooks_Win32()
|
ArchHooks_Win32::~ArchHooks_Win32()
|
||||||
|
|||||||
Reference in New Issue
Block a user