Skip to content

Commit 0e462a3

Browse files
committed
[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.
1 parent 79f2289 commit 0e462a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

base/services/seclogon/seclogon.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ ServiceControlHandlerEx(
7474
TRACE(" SERVICE_CONTROL_STOP received\n");
7575
UpdateServiceStatus(SERVICE_STOP_PENDING);
7676
StopRpcServer();
77+
UpdateServiceStatus(SERVICE_STOPPED);
7778
return ERROR_SUCCESS;
7879

7980
case SERVICE_CONTROL_PAUSE:
@@ -100,6 +101,7 @@ ServiceControlHandlerEx(
100101
TRACE(" SERVICE_CONTROL_SHUTDOWN received\n");
101102
UpdateServiceStatus(SERVICE_STOP_PENDING);
102103
StopRpcServer();
104+
UpdateServiceStatus(SERVICE_STOPPED);
103105
return ERROR_SUCCESS;
104106

105107
default :

0 commit comments

Comments
 (0)