mirror of
https://github.com/reactos/reactos.git
synced 2024-07-24 05:08:16 +00:00
[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:
parent
2bbd8711a7
commit
092d6ca92e
|
@ -506,7 +506,7 @@ EnableUserModePnpManager(VOID)
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = StartServiceW(hService, 0, NULL);
|
ret = StartServiceW(hService, 0, NULL);
|
||||||
if (!ret)
|
if ((!ret) && (GetLastError() != ERROR_SERVICE_ALREADY_RUNNING))
|
||||||
{
|
{
|
||||||
DPRINT1("Unable to start service\n");
|
DPRINT1("Unable to start service\n");
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
Loading…
Reference in a new issue