Commit 2b42ddf6 authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

winex11: Make a constant unsigned to avoid shift overflow in get_locale_kbd_layout.

parent 25c78aac
......@@ -1592,7 +1592,7 @@ static HKL get_locale_kbd_layout(void)
*/
langid = PRIMARYLANGID(LANGIDFROMLCID(layout));
if (langid == LANG_CHINESE || langid == LANG_JAPANESE || langid == LANG_KOREAN)
layout |= 0xe001 << 16; /* IME */
layout = MAKELONG( layout, 0xe001 ); /* IME */
else
layout |= layout << 16;
......
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