mirror of
https://github.com/reactos/reactos
synced 2025-10-06 00:12:51 +02:00
[NTUSER] IntLanguageToggle(): Guard against NULL pFocusQueue (#8368)
Addendum to commit 25b7447818
(PR #5839)
This commit is contained in:
@@ -821,12 +821,17 @@ IntLanguageToggle(
|
||||
_In_ BOOL bSameLang,
|
||||
_In_ INT nKeyState)
|
||||
{
|
||||
PWND pWnd = pFocusQueue->spwndFocus;
|
||||
HWND hWnd;
|
||||
WPARAM wParam = 0;
|
||||
PWND pWnd;
|
||||
PTHREADINFO pti;
|
||||
PKL pkl;
|
||||
WPARAM wParam = 0;
|
||||
|
||||
if (!pFocusQueue)
|
||||
{
|
||||
ERR("IntLanguageToggle(): NULL pFocusQueue\n");
|
||||
return;
|
||||
}
|
||||
pWnd = pFocusQueue->spwndFocus;
|
||||
if (!pWnd)
|
||||
pWnd = pFocusQueue->spwndActive;
|
||||
if (!pWnd)
|
||||
@@ -843,8 +848,7 @@ IntLanguageToggle(
|
||||
if (gSystemFS & pkl->dwFontSigs)
|
||||
wParam |= INPUTLANGCHANGE_SYSCHARSET;
|
||||
|
||||
hWnd = UserHMGetHandle(pWnd);
|
||||
UserPostMessage(hWnd, WM_INPUTLANGCHANGEREQUEST, wParam, (LPARAM)pkl->hkl);
|
||||
UserPostMessage(UserHMGetHandle(pWnd), WM_INPUTLANGCHANGEREQUEST, wParam, (LPARAM)pkl->hkl);
|
||||
}
|
||||
|
||||
/* Check Language Toggle by [Left Alt]+Shift or Ctrl+Shift */
|
||||
|
Reference in New Issue
Block a user