mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 01:12:06 +00:00
[SCHEDSVC]
Set service status to SERVICE_STOP_PENDING before setting it to SERVICE_STOPPED. svn path=/trunk/; revision=74020
This commit is contained in:
parent
91d6a8f428
commit
fcd6f24ca0
|
@ -73,6 +73,7 @@ ServiceControlHandler(DWORD dwControl,
|
|||
{
|
||||
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 @@ ServiceControlHandler(DWORD dwControl,
|
|||
|
||||
case SERVICE_CONTROL_SHUTDOWN:
|
||||
TRACE(" SERVICE_CONTROL_SHUTDOWN received\n");
|
||||
UpdateServiceStatus(SERVICE_STOP_PENDING);
|
||||
UpdateServiceStatus(SERVICE_STOPPED);
|
||||
return ERROR_SUCCESS;
|
||||
|
||||
|
|
Loading…
Reference in a new issue