mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
[ADVAPI32] Stop the service dispatcher thread only if a SERVICE_CONTROL_STOP command was sent
This commit is contained in:
parent
74adcadbd0
commit
bf1e655172
1 changed files with 3 additions and 2 deletions
|
@ -602,9 +602,10 @@ ScServiceDispatcher(HANDLE hPipe,
|
|||
lpServiceName = (LPWSTR)((PBYTE)ControlPacket + ControlPacket->dwServiceNameOffset);
|
||||
TRACE("Service: %S\n", lpServiceName);
|
||||
|
||||
if (lpServiceName[0] == UNICODE_NULL)
|
||||
if ((ControlPacket->dwControl == SERVICE_CONTROL_STOP) &&
|
||||
(lpServiceName[0] == UNICODE_NULL))
|
||||
{
|
||||
ERR("Stop dispatcher thread\n");
|
||||
TRACE("Stop dispatcher thread\n");
|
||||
bRunning = FALSE;
|
||||
dwError = ERROR_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue