mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
user32: Avoid shift overflow in nulldrv_GetKeyboardLayoutList.
Signed-off-by: Gerald Pfeifer <gerald@pfeifer.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
99b83bf385
commit
1e803cb1df
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ static UINT CDECL nulldrv_GetKeyboardLayoutList( INT size, HKL *layouts )
|
|||
baselayout = GetUserDefaultLCID();
|
||||
langid = PRIMARYLANGID(LANGIDFROMLCID(baselayout));
|
||||
if (langid == LANG_CHINESE || langid == LANG_JAPANESE || langid == LANG_KOREAN)
|
||||
baselayout |= 0xe001 << 16; /* IME */
|
||||
baselayout = MAKELONG( baselayout, 0xe001 ); /* IME */
|
||||
else
|
||||
baselayout |= baselayout << 16;
|
||||
|
||||
|
|
Loading…
Reference in a new issue