The service thread must receive all commands.
authorEric Kohl <eric.kohl@reactos.org>
Fri, 25 Dec 2009 16:41:06 +0000 (16:41 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Fri, 25 Dec 2009 16:41:06 +0000 (16:41 +0000)
svn path=/trunk/; revision=44760

reactos/dll/win32/advapi32/service/sctrl.c

index 8ce10ce..3094951 100644 (file)
@@ -395,7 +395,8 @@ ScServiceDispatcher(HANDLE hPipe,
                 break;
 
             default:
-                TRACE("Unknown command %lu", ControlPacket->dwControl);
+                TRACE("Command %lu received", ControlPacket->dwControl);
+                ScControlService(ControlPacket);
                 continue;
         }
 
@@ -519,7 +520,7 @@ RegisterServiceCtrlHandlerExW(LPCWSTR lpServiceName,
     Service->HandlerFunctionEx = lpHandlerProc;
     Service->HandlerContext = lpContext;
 
-    TRACE("RegisterServiceCtrlHandlerEx returning %lu", Service->hService);
+    TRACE("RegisterServiceCtrlHandlerEx returning %lu\n", Service->hService);
 
     return (SERVICE_STATUS_HANDLE)Service->hService;
 }