Skip to content

Commit

Permalink
improve 4
Browse files Browse the repository at this point in the history
  • Loading branch information
katahiromz committed Oct 27, 2023
1 parent 0b81f07 commit c80c7ae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions win32ss/user/ntuser/defwnd.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,11 +539,10 @@ static VOID FASTCALL IntToggleInputLanguage(PWND Wnd)
UNICODE_STRING ustrClass, ustrWindow;
HWND hwndSwitch;

/* Use kbswitcher window of kbswitch.exe */
RtlInitUnicodeString(&ustrClass, L"kbswitcher");
RtlInitUnicodeString(&ustrWindow, L"");

IntGetAtomFromStringOrAtom(&ustrClass, &ClassAtom);

RtlInitUnicodeString(&ustrWindow, L"");
hwndSwitch = IntFindWindow(UserGetDesktopWindow(), NULL, ClassAtom, &ustrWindow);
if (!hwndSwitch)
return;
Expand Down

0 comments on commit c80c7ae

Please sign in to comment.