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()); }