From cf886638e67c10266a2595b4766f0844626f5ac7 Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Wed, 29 Jul 2026 02:21:45 -0400 Subject: [PATCH] Fix crash dump exit code comparison Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 13d168eb-c2c9-410e-b5fb-be2637ac4e9a --- src/coreclr/vm/excep.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coreclr/vm/excep.cpp b/src/coreclr/vm/excep.cpp index 638160e90210cf..29d12d6125d65f 100644 --- a/src/coreclr/vm/excep.cpp +++ b/src/coreclr/vm/excep.cpp @@ -3487,14 +3487,14 @@ bool GenerateDump( void CrashDumpAndTerminateProcess(UINT exitCode) { #ifdef FEATURE_INPROC_CRASHREPORT - if (exitCode == COR_E_STACKOVERFLOW) + if (exitCode == static_cast(COR_E_STACKOVERFLOW)) { InProcCrashReportSetCrashKind(InProcCrashReportCrashKind::StackOverflow); } #endif #ifdef HOST_WINDOWS - CreateCrashDumpIfEnabled(exitCode == COR_E_STACKOVERFLOW); + CreateCrashDumpIfEnabled(exitCode == static_cast(COR_E_STACKOVERFLOW)); #endif TerminateProcess(GetCurrentProcess(), exitCode); }