mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +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
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue