We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 023ab45 commit 465108aCopy full SHA for 465108a
Flow.Launcher.Infrastructure/Win32Helper.cs
@@ -371,9 +371,8 @@ public static unsafe void SetEnglishKeyboardLayout(bool backupPrevious)
371
if (enHKL == HKL.Null) return;
372
373
// Get the current window thread ID
374
- uint threadId = 0;
375
- var result = PInvoke.GetWindowThreadProcessId(PInvoke.GetForegroundWindow(), &threadId);
376
- if (result == 0 || threadId == 0) throw new Win32Exception(Marshal.GetLastWin32Error());
+ var threadId = PInvoke.GetWindowThreadProcessId(PInvoke.GetForegroundWindow());
+ if (threadId == 0) throw new Win32Exception(Marshal.GetLastWin32Error());
377
378
// Backup current keyboard layout
379
if (backupPrevious)
0 commit comments