user32: Avoid shift overflow in nulldrv_GetKeyboardLayoutList. nulldrv_GetKeyboardLayoutList. (RESEND)

Gerald Pfeifer gerald at pfeifer.com
Fri Oct 16 16:05:13 CDT 2015


I saw this did not get committed, while I also did not see a
response on wine-devel.

Any concerns?

Gerald

---
 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