Alexandre Julliard : include: Fix 64-bit sign extension in the MAKEWPARAM/ LPARAM macros.

Alexandre Julliard julliard at winehq.org
Mon Jan 5 10:24:36 CST 2009


Module: wine
Branch: master
Commit: fec03d2bcc76e7c64f32223e0ca8eba2d3d1d430
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fec03d2bcc76e7c64f32223e0ca8eba2d3d1d430

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Jan  5 16:08:17 2009 +0100

include: Fix 64-bit sign extension in the MAKEWPARAM/LPARAM macros.

---

 include/winuser.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/winuser.h b/include/winuser.h
index fd91d92..3f202b1 100644
--- a/include/winuser.h
+++ b/include/winuser.h
@@ -2078,9 +2078,9 @@ typedef struct tagMSG
 #define POINTSTOPOINT(pt, pts) { (pt).x = (pts).x; (pt).y = (pts).y; }
 #define POINTTOPOINTS(pt)      (MAKELONG((short)((pt).x), (short)((pt).y)))
 
-#define MAKELPARAM(low,high)   ((LPARAM)MAKELONG(low,high))
-#define MAKEWPARAM(low,high)   ((WPARAM)MAKELONG(low,high))
-#define MAKELRESULT(low,high)  ((LRESULT)MAKELONG(low,high))
+#define MAKELPARAM(low,high)   ((LPARAM)(DWORD)MAKELONG(low,high))
+#define MAKEWPARAM(low,high)   ((WPARAM)(DWORD)MAKELONG(low,high))
+#define MAKELRESULT(low,high)  ((LRESULT)(DWORD)MAKELONG(low,high))
 
 /* Cursors / Icons */
 




More information about the wine-cvs mailing list