mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-25 21:31:37 +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)
|
LONG CALLBACK nonmsvc_CrashExceptionHandler(PEXCEPTION_POINTERS ExceptionInfo)
|
||||||
{
|
{
|
||||||
DWORD foo = EXCEPTION_CONTINUE_SEARCH;
|
DWORD foo = EXCEPTION_CONTINUE_SEARCH;
|
||||||
//only bother with fatal non-continuable errors.
|
foo = CrashExceptionHandler(false, ExceptionInfo->ExceptionRecord->ExceptionCode, ExceptionInfo);
|
||||||
if (ExceptionInfo->ExceptionRecord->ExceptionFlags & EXCEPTION_NONCONTINUABLE)
|
//we have no handler. thus we handle it by exiting.
|
||||||
{
|
if (foo == EXCEPTION_EXECUTE_HANDLER)
|
||||||
foo = CrashExceptionHandler(false, ExceptionInfo->ExceptionRecord->ExceptionCode, ExceptionInfo);
|
exit(1);
|
||||||
|
|
||||||
//we have no handler. thus we handle it by exiting.
|
|
||||||
if (foo == EXCEPTION_EXECUTE_HANDLER)
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
return foo;
|
return foo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue