[IMM32] ImmTranslateMessage: Minor fix

CORE-11700
This commit is contained in:
Katayama Hirofumi MZ 2022-10-20 11:32:23 +09:00
parent 4af3372c23
commit 378d0e814c

View file

@ -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);
}
}
}
}