Commit c9988c88 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

imm32: Exit early in ImmTranslateMessage when there was no new input.

parent ef12437b
......@@ -3045,7 +3045,7 @@ BOOL WINAPI ImmTranslateMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lKeyD
else
return FALSE;
if (!data->immKbd->hIME || !data->immKbd->pImeToAsciiEx)
if (!data->immKbd->hIME || !data->immKbd->pImeToAsciiEx || data->lastVK == VK_PROCESSKEY)
return FALSE;
GetKeyboardState(state);
......
......@@ -1643,6 +1643,8 @@ static void test_ime_processkey(void)
trace("ProcessKey was correctly found\n");
}
TranslateMessage(&msg);
/* test calling TranslateMessage multiple times */
TranslateMessage(&msg);
DispatchMessageW(&msg);
}
......
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