Don't log asserts/unreachables twice on Windows (#4497)

This commit is contained in:
kalaposfos13 2026-05-31 22:15:21 +02:00 committed by GitHub
parent dd18a5f29f
commit d1030d01db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,6 +52,10 @@ static LONG WINAPI SignalHandler(EXCEPTION_POINTERS* pExp) noexcept {
case DBG_PRINTEXCEPTION_WIDE_C:
// Used by OutputDebugString functions.
return EXCEPTION_CONTINUE_EXECUTION;
case EXCEPTION_BREAKPOINT:
// This is almost certainly coming from our asserts/unreachables, no need to log it again.
Common::Log::Flush();
return EXCEPTION_CONTINUE_SEARCH;
default:
break;
}