Skip to content

Commit aded724

Browse files
committed
Use culture-invariant string comparison
1 parent caa07ec commit aded724

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Flow.Launcher.Infrastructure/DialogJump/Models/WindowsExplorer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public IDialogJumpExplorerWindow CheckExplorerWindow(IntPtr hwnd)
2020

2121
// Is it from Explorer?
2222
var processName = Win32Helper.GetProcessNameFromHwnd(new(hwnd));
23-
if (processName.ToLower() == "explorer.exe")
23+
if (processName.Equals("explorer.exe", StringComparison.OrdinalIgnoreCase))
2424
{
2525
EnumerateShellWindows((shellWindow) =>
2626
{

0 commit comments

Comments
 (0)