mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2025-01-22 00:11:20 +00:00
fixed calls to OutputDebugStringA/W being considered a crash
This commit is contained in:
parent
3d6d1e587a
commit
e199d943e0
1 changed files with 5 additions and 0 deletions
|
@ -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) {}
|
||||
|
|
Loading…
Reference in a new issue