mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[IMM32] GetKeyboardLayout's parameter is a thread id
s/dwLayout/dwThreadId/ CORE-11700
This commit is contained in:
parent
e6a51b54c4
commit
f5bbd57d73
1 changed files with 4 additions and 4 deletions
|
@ -147,17 +147,17 @@ BOOL APIENTRY
|
|||
Imm32NotifyAction(HIMC hIMC, HWND hwnd, DWORD dwAction, DWORD_PTR dwIndex, DWORD_PTR dwValue,
|
||||
DWORD_PTR dwCommand, DWORD_PTR dwData)
|
||||
{
|
||||
DWORD dwLayout;
|
||||
DWORD dwThreadId;
|
||||
HKL hKL;
|
||||
PIMEDPI pImeDpi;
|
||||
|
||||
if (dwAction)
|
||||
{
|
||||
dwLayout = NtUserQueryInputContext(hIMC, 1);
|
||||
if (dwLayout)
|
||||
dwThreadId = NtUserQueryInputContext(hIMC, 1);
|
||||
if (dwThreadId)
|
||||
{
|
||||
/* find keyboard layout and lock it */
|
||||
hKL = GetKeyboardLayout(dwLayout);
|
||||
hKL = GetKeyboardLayout(dwThreadId);
|
||||
pImeDpi = ImmLockImeDpi(hKL);
|
||||
if (pImeDpi)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue