https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0e462a3905af0959040c1cab3af176cee40cabc7

commit 0e462a3905af0959040c1cab3af176cee40cabc7
Author:     Eric Kohl <eric.k...@reactos.org>
AuthorDate: Sun Nov 3 10:37:04 2024 +0100
Commit:     Eric Kohl <eric.k...@reactos.org>
CommitDate: Sun Nov 3 10:37:04 2024 +0100

    [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.
---
 base/services/seclogon/seclogon.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/base/services/seclogon/seclogon.c 
b/base/services/seclogon/seclogon.c
index efe5ce4f853..b15fb22aa03 100644
--- a/base/services/seclogon/seclogon.c
+++ b/base/services/seclogon/seclogon.c
@@ -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 :

Reply via email to