Commit f522c58c authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

imm32: Mask the scancode before passing it to ImeToAsciiEx.

parent 961e01e5
......@@ -3099,7 +3099,7 @@ BOOL WINAPI ImmTranslateMessage( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpar
if ((vkey = data->vkey) == VK_PROCESSKEY) return FALSE;
data->vkey = VK_PROCESSKEY;
GetKeyboardState( state );
scan = lparam >> 0x10;
scan = (lparam >> 0x10) & 0xffff;
if (ime->info.fdwProperty & IME_PROP_KBD_CHAR_FIRST)
{
......
......@@ -7044,7 +7044,6 @@ static void test_ImmTranslateMessage( BOOL kbd_char_first )
.hkl = expect_ime, .himc = default_himc, .func = IME_TO_ASCII_EX,
/* FIXME what happened to kbd_char_first here!? */
.to_ascii_ex = {.vkey = 'Q', .vsc = 0xc010},
.todo_value = TRUE,
},
{0},
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment