Skip to content

Commit 8f83c10

Browse files
Jack251970Copilot
andauthored
Simply pass e directly
Co-authored-by: Copilot <[email protected]>
1 parent d8b11c2 commit 8f83c10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Flow.Launcher/Helper/ErrorReporting.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ private static void Report(Exception e, bool silent = false, [CallerMemberName]
2222
// Many bug reports because users see the "Report problem UI" after "the" crash with System.Runtime.InteropServices.COMException 0xD0000701 or 0x80263001.
2323
// However, displaying this "Report problem UI" during WPF crashes, especially when DWM composition is changing, is not ideal; some users reported it hangs for up to a minute before the "Report problem UI" appears.
2424
// This change modifies the behavior to log the exception instead of showing the "Report problem UI".
25-
if (ExceptionHelper.IsRecoverableDwmCompositionException(e as System.Runtime.InteropServices.COMException)) return;
25+
if (ExceptionHelper.IsRecoverableDwmCompositionException(e)) return;
2626

2727
var reportWindow = new ReportWindow(e);
2828
reportWindow.Show();

0 commit comments

Comments
 (0)