From d1030d01db5cc65ab0485aad16135cc1df0c9356 Mon Sep 17 00:00:00 2001 From: kalaposfos13 <153381648+kalaposfos13@users.noreply.github.com> Date: Sun, 31 May 2026 22:15:21 +0200 Subject: [PATCH] Don't log asserts/unreachables twice on Windows (#4497) --- src/core/signals.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/signals.cpp b/src/core/signals.cpp index 8ed0ecf41..c4db17808 100644 --- a/src/core/signals.cpp +++ b/src/core/signals.cpp @@ -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; }