* Sync with trunk r64401.
[reactos.git] / base / applications / mscutils / servman / mainwnd.c
index d4534b9..6823379 100644 (file)
@@ -9,6 +9,8 @@
 
 #include "precomp.h"
 
+#include <windowsx.h>
+
 static const TCHAR szMainWndClass[] = TEXT("ServManWndClass");
 
 BOOL bSortAscending = TRUE;
@@ -469,7 +471,7 @@ MainWndCommand(PMAIN_WND_INFO Info,
 
         case ID_START:
         {
-            if (DoStart(Info))
+            if (DoStart(Info, NULL))
             {
                 UpdateServiceStatus(Info->pCurrentService);
                 ChangeListViewText(Info, Info->pCurrentService, LVSTATUS);
@@ -500,7 +502,7 @@ MainWndCommand(PMAIN_WND_INFO Info,
         case ID_RESTART:
             if (DoStop(Info))
             {
-                DoStart(Info);
+                DoStart(Info, NULL);
                 UpdateServiceStatus(Info->pCurrentService);
                 ChangeListViewText(Info, Info->pCurrentService, LVSTATUS);
                 SetMenuAndButtonStates(Info);
@@ -912,8 +914,8 @@ CreateMainWindow(LPCTSTR lpCaption,
                                   Info);
         if (hMainWnd == NULL)
         {
-            int ret;
-            ret = GetLastError();
+            //int ret;
+            //ret = GetLastError();
             GetError();
             HeapFree(ProcessHeap,
                      0,