Author: ekohl
Date: Wed Mar 1 21:48:15 2017
New Revision: 74020
URL:
http://svn.reactos.org/svn/reactos?rev=74020&view=rev
Log:
[SCHEDSVC]
Set service status to SERVICE_STOP_PENDING before setting it to SERVICE_STOPPED.
Modified:
trunk/reactos/base/services/schedsvc/schedsvc.c
Modified: trunk/reactos/base/services/schedsvc/schedsvc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/schedsvc/sch…
==============================================================================
--- trunk/reactos/base/services/schedsvc/schedsvc.c [iso-8859-1] (original)
+++ trunk/reactos/base/services/schedsvc/schedsvc.c [iso-8859-1] Wed Mar 1 21:48:15 2017
@@ -73,6 +73,7 @@
{
case SERVICE_CONTROL_STOP:
TRACE(" SERVICE_CONTROL_STOP received\n");
+ UpdateServiceStatus(SERVICE_STOP_PENDING);
/* Stop listening to incoming RPC messages */
RpcMgmtStopServerListening(NULL);
UpdateServiceStatus(SERVICE_STOPPED);
@@ -96,6 +97,7 @@
case SERVICE_CONTROL_SHUTDOWN:
TRACE(" SERVICE_CONTROL_SHUTDOWN received\n");
+ UpdateServiceStatus(SERVICE_STOP_PENDING);
UpdateServiceStatus(SERVICE_STOPPED);
return ERROR_SUCCESS;