https://git.reactos.org/?p=reactos.git;a=commitdiff;h=378d0e814c16e7f6c4cea…
commit 378d0e814c16e7f6c4cea5237b98cab48c8cf474
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Thu Oct 20 11:32:23 2022 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Thu Oct 20 11:32:23 2022 +0900
[IMM32] ImmTranslateMessage: Minor fix
CORE-11700
---
dll/win32/imm32/keymsg.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/dll/win32/imm32/keymsg.c b/dll/win32/imm32/keymsg.c
index 104a6f6ee43..2d354954d8a 100644
--- a/dll/win32/imm32/keymsg.c
+++ b/dll/win32/imm32/keymsg.c
@@ -1093,7 +1093,17 @@ BOOL WINAPI ImmTranslateMessage(HWND hwnd, UINT msg, WPARAM wParam,
LPARAM lKeyD
wChar = 0;
kret = ToAsciiEx(vk, HIWORD(lKeyData), abKeyState, &wChar, 0, hKL);
if (kret > 0)
- vk = MAKEWORD(vk, wChar);
+ {
+ if ((BYTE)vk == VK_PACKET)
+ {
+ vk &= 0xFF;
+ vk |= (wChar << 8);
+ }
+ else
+ {
+ vk = MAKEWORD(vk, wChar);
+ }
+ }
}
}