[SERVICES] Set a complete service status for running boot start or system start drivers
authorEric Kohl <eric.kohl@reactos.org>
Mon, 12 Feb 2018 14:50:30 +0000 (15:50 +0100)
committerEric Kohl <eric.kohl@reactos.org>
Mon, 12 Feb 2018 14:50:30 +0000 (15:50 +0100)
base/system/services/database.c

index b450fe4..d31d353 100644 (file)
@@ -1040,6 +1040,11 @@ ScmCheckDriver(PSERVICE Service)
 
             /* Mark service as 'running' */
             Service->Status.dwCurrentState = SERVICE_RUNNING;
+            Service->Status.dwControlsAccepted = SERVICE_ACCEPT_STOP;
+            Service->Status.dwWin32ExitCode = ERROR_SUCCESS;
+            Service->Status.dwServiceSpecificExitCode = 0;
+            Service->Status.dwCheckPoint = 0;
+            Service->Status.dwWaitHint = 0;
 
             /* Mark the service group as 'running' */
             if (Service->lpGroup != NULL)