[resend] user32: Avoid shift overflow in nulldrv_GetKeyboardLayoutList.
Gerald Pfeifer
gerald at pfeifer.com
Sat Nov 28 15:54:52 CST 2015
Now with...
Signed-off-by: Gerald Pfeifer <gerald at pfeifer.com>
---
dlls/user32/driver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/user32/driver.c b/dlls/user32/driver.c
index ced8836..34f870c 100644
--- a/dlls/user32/driver.c
+++ b/dlls/user32/driver.c
@@ -214,7 +214,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 |= 0xe001u << 16; /* IME */
else
baselayout |= baselayout << 16;
--
2.4.6
More information about the wine-patches
mailing list