[syssetup]
authorMichael Martin <michael.martin@reactos.org>
Thu, 10 Mar 2011 10:36:49 +0000 (10:36 +0000)
committerMichael Martin <michael.martin@reactos.org>
Thu, 10 Mar 2011 10:36:49 +0000 (10:36 +0000)
- EnableUserModePnpManager:  StartServiceW can fail due to the service already running. Check last error for such a case. Should fix bug #5846.

svn path=/trunk/; revision=51006

reactos/dll/win32/syssetup/install.c

index 6ec7285..66f981b 100644 (file)
@@ -506,7 +506,7 @@ EnableUserModePnpManager(VOID)
     }
 
     ret = StartServiceW(hService, 0, NULL);
-    if (!ret)
+    if ((!ret) && (GetLastError() != ERROR_SERVICE_ALREADY_RUNNING))
     {
         DPRINT1("Unable to start service\n");
         goto cleanup;