Author: jgardou
Date: Sat Nov 19 16:13:31 2011
New Revision: 54442
URL:
http://svn.reactos.org/svn/reactos?rev=54442&view=rev
Log:
[WINDEF.H]
- you never use enough brackets
Modified:
trunk/reactos/include/psdk/windef.h
Modified: trunk/reactos/include/psdk/windef.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/windef.h?rev=…
==============================================================================
--- trunk/reactos/include/psdk/windef.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/windef.h [iso-8859-1] Sat Nov 19 16:13:31 2011
@@ -246,8 +246,8 @@
#endif
#endif
-#define MAKEWORD(a,b) ((WORD)(((BYTE)((DWORD_PTR)(a) & 0xff)) |
((WORD)((BYTE)((DWORD_PTR)(b) & 0xff))) << 8))
-#define MAKELONG(a,b) ((LONG)(((WORD)((DWORD_PTR)(a) & 0xffff)) |
((DWORD)((WORD)((DWORD_PTR)(b) & 0xffff))) << 16))
+#define MAKEWORD(a,b) ((WORD)(((BYTE)((DWORD_PTR)(a) & 0xff)) |
(((WORD)((BYTE)((DWORD_PTR)(b) & 0xff))) << 8)))
+#define MAKELONG(a,b) ((LONG)(((WORD)((DWORD_PTR)(a) & 0xffff)) |
(((DWORD)((WORD)((DWORD_PTR)(b) & 0xffff))) << 16)))
#define LOWORD(l) ((WORD)((DWORD_PTR)(l) & 0xffff))
#define HIWORD(l) ((WORD)((DWORD_PTR)(l) >> 16))
#define LOBYTE(w) ((BYTE)((DWORD_PTR)(w) & 0xff))