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

oldstable
Alexandre Julliard 2009-01-05 16:08:17 +01:00
parent 57a1a147a6
commit fec03d2bcc
1 changed files with 3 additions and 3 deletions

View File

@ -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 */