From f602743c5a8fa8603ecaead05aa06e951798402e Mon Sep 17 00:00:00 2001 From: Asher Baker Date: Fri, 31 Oct 2014 22:42:09 +0000 Subject: [PATCH] Catch Sys_Error on Windows. (Fixes T3) --- extension/extension.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extension/extension.cpp b/extension/extension.cpp index d54a6a4..9510e47 100644 --- a/extension/extension.cpp +++ b/extension/extension.cpp @@ -99,8 +99,13 @@ LONG CALLBACK BreakpadVectoredHandler(_In_ PEXCEPTION_POINTERS ExceptionInfo) case EXCEPTION_ARRAY_BOUNDS_EXCEEDED: case EXCEPTION_DATATYPE_MISALIGNMENT: case EXCEPTION_ILLEGAL_INSTRUCTION: + case EXCEPTION_INT_DIVIDE_BY_ZERO: case EXCEPTION_STACK_OVERFLOW: break; + case 0: // Valve use this for Sys_Error. + if ((ExceptionInfo->ExceptionRecord->ExceptionFlags & EXCEPTION_NONCONTINUABLE) == 0) + return EXCEPTION_CONTINUE_SEARCH; + break; default: return EXCEPTION_CONTINUE_SEARCH; }