mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-29 07:02:12 +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.
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue