]> granicus.if.org Git - apache/commitdiff
Fix Restart and Stop from the service taskbar list.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 19 Apr 2002 19:19:44 +0000 (19:19 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 19 Apr 2002 19:19:44 +0000 (19:19 +0000)
PR: 7930
Obtained from: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7930
Submitted by: David Shane Holden <dpejesh@yahoo.com>
Reviewed by: Mladen Turk, William Rowe

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94723 13f79535-47bb-0310-9956-ffa450edef68

support/win32/ApacheMonitor.c

index 2a54fadee3ee772bc98e73a00653c0592ac64711..dcc7d1e1120471666fddc589e989a5751618134b 100644 (file)
@@ -1492,7 +1492,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message,
             {
                 ApacheManageService(g_stServices[LOWORD(wParam) - IDM_SM_STOP].szServiceName,
                                     g_stServices[LOWORD(wParam) - IDM_SM_STOP].szImagePath,
-                                    g_stServices[LOWORD(wParam) - IDM_SM_START].szComputerName,
+                                    g_stServices[LOWORD(wParam) - IDM_SM_STOP].szComputerName,
                                     SERVICE_CONTROL_STOP);                
                 return TRUE;
             }
@@ -1500,7 +1500,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message,
             {
                 ApacheManageService(g_stServices[LOWORD(wParam) - IDM_SM_RESTART].szServiceName,
                                     g_stServices[LOWORD(wParam) - IDM_SM_RESTART].szImagePath,
-                                    g_stServices[LOWORD(wParam) - IDM_SM_START].szComputerName,
+                                    g_stServices[LOWORD(wParam) - IDM_SM_RESTART].szComputerName,
                                     SERVICE_APACHE_RESTART);                
                 return TRUE;
             }