fix msvc warnings
[reactos.git] / reactos / subsys / system / servman / servman.c
index 1e30eab..1e774bc 100644 (file)
@@ -177,12 +177,15 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
 \r
                    SendMessage(hStatus, SB_SETPARTS, sizeof(statwidths)/sizeof(int), (LPARAM)statwidths);\r
 \r
 \r
                    SendMessage(hStatus, SB_SETPARTS, sizeof(statwidths)/sizeof(int), (LPARAM)statwidths);\r
 \r
-                   /* populate the list view with all services */\r
+\r
+/* ================= populate the list view with all services =================== */\r
+\r
                    if (! RefreshServiceList() )\r
                 GetError();\r
 \r
            }\r
            break;\r
                    if (! RefreshServiceList() )\r
                 GetError();\r
 \r
            }\r
            break;\r
+\r
            case WM_SIZE:\r
            {\r
                    RECT rcTool;\r
            case WM_SIZE:\r
            {\r
                    RECT rcTool;\r
@@ -241,7 +244,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
 \r
                     // Specify the resource identifier of the descriptive\r
                     // text for the given button.\r
 \r
                     // Specify the resource identifier of the descriptive\r
                     // text for the given button.\r
-                    idButton = lpttt->hdr.idFrom;\r
+                    idButton = (UINT)lpttt->hdr.idFrom;\r
                     switch (idButton)\r
                     {\r
                         case ID_PROP:\r
                     switch (idButton)\r
                     {\r
                         case ID_PROP:\r
@@ -337,11 +340,13 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
                 break;\r
 \r
                 case ID_HELP:\r
                 break;\r
 \r
                 case ID_HELP:\r
+                    MessageBox(NULL, _T("Help is not yet implemented\n"), \r
+                        _T("Note!"), MB_OK | MB_ICONINFORMATION);\r
                 break;\r
 \r
                 case ID_EXIT:\r
                 break;\r
 \r
                 case ID_EXIT:\r
-                                   PostMessage(hwnd, WM_CLOSE, 0, 0);\r
-                           break;\r
+                    PostMessage(hwnd, WM_CLOSE, 0, 0);\r
+                break;\r
 \r
                 case ID_VIEW_CUSTOMIZE:\r
                 break;\r
 \r
                 case ID_VIEW_CUSTOMIZE:\r
                 break;\r
@@ -362,8 +367,9 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
     return 0;\r
 }\r
 \r
     return 0;\r
 }\r
 \r
-\r
-//#pragma warning(disable : 4100)\r
+#ifdef _MSC_VER\r
+#pragma warning(disable : 4100)\r
+#endif\r
 int WINAPI WinMain(HINSTANCE hThisInstance, HINSTANCE hPrevInstance,\r
     LPSTR lpCmdLine, int nCmdShow)\r
 {\r
 int WINAPI WinMain(HINSTANCE hThisInstance, HINSTANCE hPrevInstance,\r
     LPSTR lpCmdLine, int nCmdShow)\r
 {\r
@@ -426,7 +432,7 @@ int WINAPI WinMain(HINSTANCE hThisInstance, HINSTANCE hPrevInstance,
             DispatchMessage(&Msg);\r
         }\r
     }\r
             DispatchMessage(&Msg);\r
         }\r
     }\r
-    return Msg.wParam;\r
+    return (int)Msg.wParam;\r
 }\r
 \r
 \r
 }\r
 \r
 \r