Skip to content

Commit 1bf5733

Browse files
committed
Fix incorrect error handling logic in keyboard layout change
1 parent 4df42a0 commit 1bf5733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Flow.Launcher.Infrastructure/Win32Helper.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ private static unsafe HKL FindEnglishKeyboardLayout()
351351
fixed (HKL* h = handles)
352352
{
353353
var result = PInvoke.GetKeyboardLayoutList(count, h);
354-
if (result != 0)
354+
if (result == 0)
355355
{
356356
throw new Win32Exception(Marshal.GetLastWin32Error());
357357
}

0 commit comments

Comments
 (0)