[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:
Eric Kohl 2024-11-03 10:37:04 +01:00
parent 79f2289a9d
commit 0e462a3905

View File

@ -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 :