Don't handle crashes, if there's no connection.

This commit is contained in:
Bartosz Taudul 2020-08-28 17:21:52 +02:00
parent 118a00d536
commit f3eabc28e2

View File

@ -538,6 +538,8 @@ static char s_crashText[1024];
LONG WINAPI CrashFilter( PEXCEPTION_POINTERS pExp ) LONG WINAPI CrashFilter( PEXCEPTION_POINTERS pExp )
{ {
if( !GetProfiler().IsConnected() ) return EXCEPTION_CONTINUE_SEARCH;
const unsigned ec = pExp->ExceptionRecord->ExceptionCode; const unsigned ec = pExp->ExceptionRecord->ExceptionCode;
auto msgPtr = s_crashText; auto msgPtr = s_crashText;
switch( ec ) switch( ec )