From: Eric Kohl Date: Fri, 25 Dec 2009 16:41:06 +0000 (+0000) Subject: The service thread must receive all commands. X-Git-Tag: backups/aicom-network-stable@46924~159 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=185c716bb36ae57b4c8cc6a300ec511ab87d0ac2 The service thread must receive all commands. svn path=/trunk/; revision=44760 --- diff --git a/reactos/dll/win32/advapi32/service/sctrl.c b/reactos/dll/win32/advapi32/service/sctrl.c index 8ce10ce0541..3094951b911 100644 --- a/reactos/dll/win32/advapi32/service/sctrl.c +++ b/reactos/dll/win32/advapi32/service/sctrl.c @@ -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; }