https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f5bbd57d7329136d97d8431a23b5eb9add5fb5d4

commit f5bbd57d7329136d97d8431a23b5eb9add5fb5d4
Author:     Katayama Hirofumi MZ <[email protected]>
AuthorDate: Fri Oct 1 03:13:52 2021 +0900
Commit:     Katayama Hirofumi MZ <[email protected]>
CommitDate: Fri Oct 1 03:13:52 2021 +0900

    [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)
             {

Reply via email to