mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-25 13:21:36 +00:00
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:
parent
ed54ed2dcf
commit
f58cede199
1 changed files with 4 additions and 9 deletions
|
@ -808,15 +808,10 @@ DWORD CrashExceptionHandler (qboolean iswatchdog, DWORD exceptionCode, LPEXCEPTI
|
|||
LONG CALLBACK nonmsvc_CrashExceptionHandler(PEXCEPTION_POINTERS ExceptionInfo)
|
||||
{
|
||||
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);
|
||||
|
||||
//we have no handler. thus we handle it by exiting.
|
||||
if (foo == EXCEPTION_EXECUTE_HANDLER)
|
||||
exit(1);
|
||||
}
|
||||
foo = CrashExceptionHandler(false, ExceptionInfo->ExceptionRecord->ExceptionCode, ExceptionInfo);
|
||||
//we have no handler. thus we handle it by exiting.
|
||||
if (foo == EXCEPTION_EXECUTE_HANDLER)
|
||||
exit(1);
|
||||
return foo;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue