projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74adcad
)
[ADVAPI32] Stop the service dispatcher thread only if a SERVICE_CONTROL_STOP command...
author
Eric Kohl
<eric.kohl@reactos.org>
Sun, 29 Jul 2018 21:19:14 +0000
(23:19 +0200)
committer
Eric Kohl
<eric.kohl@reactos.org>
Sun, 29 Jul 2018 21:40:36 +0000
(23:40 +0200)
dll/win32/advapi32/service/sctrl.c
patch
|
blob
|
history
diff --git
a/dll/win32/advapi32/service/sctrl.c
b/dll/win32/advapi32/service/sctrl.c
index
8b28b2b
..
f4a7aa8
100644
(file)
--- a/
dll/win32/advapi32/service/sctrl.c
+++ b/
dll/win32/advapi32/service/sctrl.c
@@
-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;
}