[PATCH] sign extension in map_wparam_WtoA

Gerard Patel gerard.patel at nerim.net
Thu Oct 4 19:09:23 CDT 2001


ChangeLog:

	* dlls/user/message.c
               fix sign extension problem in map_wparam_WtoA
-------------- next part --------------
Index: dlls/user/message.c
===================================================================
RCS file: /home/wine/wine/dlls/user/message.c,v
retrieving revision 1.6
diff -u -r1.6 message.c
--- dlls/user/message.c	2001/10/02 18:53:59	1.6
+++ dlls/user/message.c	2001/10/04 20:32:40
@@ -366,7 +366,7 @@
         WCHAR wch = LOWORD(wparam);
         char ch;
         WideCharToMultiByte( CP_ACP, 0, &wch, 1, &ch, 1, NULL, NULL );
-        wparam = MAKEWPARAM( ch, HIWORD(wparam) );
+        wparam = MAKEWPARAM( ((WORD)ch) & 0xff, HIWORD(wparam) );
     }
     return wparam;
 }
-------------- next part --------------



More information about the wine-patches mailing list