[syssetup]

- 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
This commit is contained in:
Michael Martin 2011-03-10 10:36:49 +00:00
parent 2bbd8711a7
commit 092d6ca92e

View 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;