CoreCore/CrashHandler: Handle CRT asserts in Windows build
Handle CRT asserts in Windows crash handler instead of popping up a Abort/Retry/Ignore window
This commit is contained in:
@@ -62,6 +62,13 @@ WheatyExceptionReport::WheatyExceptionReport() // Constructor
|
||||
// Install the unhandled exception filter function
|
||||
m_previousFilter = SetUnhandledExceptionFilter(WheatyUnhandledExceptionFilter);
|
||||
m_hProcess = GetCurrentProcess();
|
||||
if (!IsDebuggerPresent())
|
||||
{
|
||||
_CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_FILE);
|
||||
_CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDERR);
|
||||
_CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE);
|
||||
_CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);
|
||||
}
|
||||
}
|
||||
|
||||
//============
|
||||
|
||||
Reference in New Issue
Block a user