Author: hbelusca
Date: Thu Apr 25 22:20:00 2013
New Revision: 58853
URL:
http://svn.reactos.org/svn/reactos?rev=58853&view=rev
Log:
[PSDK]
Clarify the meaning of the parameters of MAKEWORD/MAKELONG
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] Thu Apr 25 22:20:00 2013
@@ -239,19 +239,19 @@
#ifndef NOMINMAX
#ifndef max
-#define max(a,b) (((a) > (b)) ? (a) : (b))
+#define max(a, b) (((a) > (b)) ? (a) : (b))
#endif
#ifndef min
-#define min(a,b) (((a) < (b)) ? (a) : (b))
-#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 LOWORD(l) ((WORD)((DWORD_PTR)(l) & 0xffff))
-#define HIWORD(l) ((WORD)((DWORD_PTR)(l) >> 16))
-#define LOBYTE(w) ((BYTE)((DWORD_PTR)(w) & 0xff))
-#define HIBYTE(w) ((BYTE)((DWORD_PTR)(w) >> 8))
+#define min(a, b) (((a) < (b)) ? (a) : (b))
+#endif
+#endif
+
+#define MAKEWORD(bLow, bHigh) ((WORD)(((BYTE)((DWORD_PTR)(bLow) & 0xff )) |
(((WORD)((BYTE)((DWORD_PTR)(bHigh) & 0xff))) << 8 )))
+#define MAKELONG(wLow, wHigh) ((LONG)(((WORD)((DWORD_PTR)(wLow) & 0xffff)) |
(((DWORD)((WORD)((DWORD_PTR)(wHigh) & 0xffff))) << 16)))
+#define LOWORD(l) ((WORD)((DWORD_PTR)(l) & 0xffff))
+#define HIWORD(l) ((WORD)(((DWORD_PTR)(l) >> 16) & 0xffff))
+#define LOBYTE(w) ((BYTE)((DWORD_PTR)(w) & 0xff))
+#define HIBYTE(w) ((BYTE)(((DWORD_PTR)(w) >> 8) & 0xff))
#ifndef WIN_INTERNAL
DECLARE_HANDLE (HWND);