From f5bbd57d7329136d97d8431a23b5eb9add5fb5d4 Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Fri, 1 Oct 2021 03:13:52 +0900 Subject: [PATCH] [IMM32] GetKeyboardLayout's parameter is a thread id s/dwLayout/dwThreadId/ CORE-11700 --- dll/win32/imm32/utils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dll/win32/imm32/utils.c b/dll/win32/imm32/utils.c index cda20efc884..40512338d22 100644 --- a/dll/win32/imm32/utils.c +++ b/dll/win32/imm32/utils.c @@ -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) {