use GET_X/Y_LPARAM as per MSDN
authorGed Murphy <gedmurphy@reactos.org>
Wed, 11 Jan 2006 00:02:14 +0000 (00:02 +0000)
committerGed Murphy <gedmurphy@reactos.org>
Wed, 11 Jan 2006 00:02:14 +0000 (00:02 +0000)
svn path=/trunk/; revision=20776

reactos/subsys/system/servman/servman.c
reactos/subsys/system/servman/servman.h

index dc10abe..0d00680 100644 (file)
@@ -318,8 +318,8 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
             {\r
                 int xPos, yPos;\r
 \r
-                xPos = LOWORD(lParam); \r
-                yPos = HIWORD(lParam);\r
+                xPos = GET_X_LPARAM(lParam); \r
+                yPos = GET_Y_LPARAM(lParam);\r
 \r
                 TrackPopupMenuEx(hShortcutMenu, TPM_RIGHTBUTTON, xPos, yPos, hwnd, NULL);\r
             }\r
index a1c1830..8ff0c0a 100644 (file)
@@ -1,8 +1,9 @@
 #ifndef __SERVMAN_H\r
 #define __SERVMAN_H\r
 \r
-\r
+#define WIN32_LEAN_AND_MEAN\r
 #include <windows.h>\r
+#include <windowsx.h>\r
 #include <stdio.h>\r
 #include <tchar.h>\r
 #include <commctrl.h>\r