fix mingw debug crash reports.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4690 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2014-06-21 23:19:47 +00:00
parent ed54ed2dcf
commit f58cede199

View file

@ -808,15 +808,10 @@ DWORD CrashExceptionHandler (qboolean iswatchdog, DWORD exceptionCode, LPEXCEPTI
LONG CALLBACK nonmsvc_CrashExceptionHandler(PEXCEPTION_POINTERS ExceptionInfo) LONG CALLBACK nonmsvc_CrashExceptionHandler(PEXCEPTION_POINTERS ExceptionInfo)
{ {
DWORD foo = EXCEPTION_CONTINUE_SEARCH; DWORD foo = EXCEPTION_CONTINUE_SEARCH;
//only bother with fatal non-continuable errors.
if (ExceptionInfo->ExceptionRecord->ExceptionFlags & EXCEPTION_NONCONTINUABLE)
{
foo = CrashExceptionHandler(false, ExceptionInfo->ExceptionRecord->ExceptionCode, ExceptionInfo); foo = CrashExceptionHandler(false, ExceptionInfo->ExceptionRecord->ExceptionCode, ExceptionInfo);
//we have no handler. thus we handle it by exiting. //we have no handler. thus we handle it by exiting.
if (foo == EXCEPTION_EXECUTE_HANDLER) if (foo == EXCEPTION_EXECUTE_HANDLER)
exit(1); exit(1);
}
return foo; return foo;
} }