winex11: Make a constant unsigned to avoid shift overflow in get_locale_kbd_layout.
This commit is contained in:
parent
25c78aac08
commit
2b42ddf68a
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue