fixed calls to OutputDebugStringA/W being considered a crash

This commit is contained in:
myT 2017-04-20 03:28:50 +02:00
parent 3d6d1e587a
commit e199d943e0
1 changed files with 5 additions and 0 deletions

View File

@ -387,6 +387,11 @@ static qbool exc_exitCalled = qfalse;
LONG CALLBACK WIN_HandleException( EXCEPTION_POINTERS* ep )
{
// Allow calls to OutputDebugStringA/W.
if (ep != NULL && ep->ExceptionRecord != NULL &&
ep->ExceptionRecord->ExceptionCode == DBG_PRINTEXCEPTION_C)
return EXCEPTION_CONTINUE_SEARCH;
__try {
WIN_EndTimePeriod();
} __except(EXCEPTION_EXECUTE_HANDLER) {}