Skip to content

Commit d8b11c2

Browse files
Jack251970Copilot
andauthored
Use StringComparison.OrdinalIgnoreCase for more robust matching
Co-authored-by: Copilot <[email protected]>
1 parent b44e525 commit d8b11c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Flow.Launcher/Helper/ExceptionHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ internal static bool IsRecoverableDwmCompositionException(Exception exception)
3939
// Check for common DWM composition changed patterns in the stack trace
4040
var stackTrace = comException.StackTrace;
4141
return !string.IsNullOrEmpty(stackTrace) &&
42-
stackTrace.Contains("DwmCompositionChanged");
42+
stackTrace.Contains("DwmCompositionChanged", StringComparison.OrdinalIgnoreCase);
4343
}
4444
}

0 commit comments

Comments
 (0)