From 1bf573344ae676adb2d22198e0d10e7b9a3cb5ff Mon Sep 17 00:00:00 2001 From: Yusyuriv Date: Sun, 23 Mar 2025 18:53:01 +0600 Subject: [PATCH] Fix incorrect error handling logic in keyboard layout change --- Flow.Launcher.Infrastructure/Win32Helper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher.Infrastructure/Win32Helper.cs b/Flow.Launcher.Infrastructure/Win32Helper.cs index 7cebedfdc..108f51fd4 100644 --- a/Flow.Launcher.Infrastructure/Win32Helper.cs +++ b/Flow.Launcher.Infrastructure/Win32Helper.cs @@ -351,7 +351,7 @@ namespace Flow.Launcher.Infrastructure fixed (HKL* h = handles) { var result = PInvoke.GetKeyboardLayoutList(count, h); - if (result != 0) + if (result == 0) { throw new Win32Exception(Marshal.GetLastWin32Error()); }