mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix incorrect error handling logic in keyboard layout change
This commit is contained in:
parent
4df42a0f63
commit
1bf573344a
1 changed files with 1 additions and 1 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue