From fec03d2bcc76e7c64f32223e0ca8eba2d3d1d430 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 5 Jan 2009 16:08:17 +0100 Subject: [PATCH] include: Fix 64-bit sign extension in the MAKEWPARAM/LPARAM macros. --- include/winuser.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/winuser.h b/include/winuser.h index fd91d9292c0..3f202b19946 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 */