mirror of
https://github.com/reactos/reactos.git
synced 2024-11-23 03:23:34 +08:00
[SECLOGON] Add missing service status updates
The Seclogon service must update its status to SERVICE_STOPPED on a SERVICE_CONTROL_STOP or SERVICE_CONTROL_SHUTDOWN command. This fixes CORE-19793.
This commit is contained in:
parent
79f2289a9d
commit
0e462a3905
@ -74,6 +74,7 @@ ServiceControlHandlerEx(
|
||||
TRACE(" SERVICE_CONTROL_STOP received\n");
|
||||
UpdateServiceStatus(SERVICE_STOP_PENDING);
|
||||
StopRpcServer();
|
||||
UpdateServiceStatus(SERVICE_STOPPED);
|
||||
return ERROR_SUCCESS;
|
||||
|
||||
case SERVICE_CONTROL_PAUSE:
|
||||
@ -100,6 +101,7 @@ ServiceControlHandlerEx(
|
||||
TRACE(" SERVICE_CONTROL_SHUTDOWN received\n");
|
||||
UpdateServiceStatus(SERVICE_STOP_PENDING);
|
||||
StopRpcServer();
|
||||
UpdateServiceStatus(SERVICE_STOPPED);
|
||||
return ERROR_SUCCESS;
|
||||
|
||||
default :
|
||||
|
Loading…
Reference in New Issue
Block a user