[ros-diffs] [mjmartin] 51006: [syssetup] - EnableUserModePnpManager: StartServiceW can fail due to the service already running. Check last error for such a case. Should fix bug #5846.
mjmartin at svn.reactos.org
mjmartin at svn.reactos.org
Thu Mar 10 10:36:51 UTC 2011
Author: mjmartin
Date: Thu Mar 10 10:36:49 2011
New Revision: 51006
URL: http://svn.reactos.org/svn/reactos?rev=51006&view=rev
Log:
[syssetup]
- EnableUserModePnpManager: StartServiceW can fail due to the service already running. Check last error for such a case. Should fix bug #5846.
Modified:
trunk/reactos/dll/win32/syssetup/install.c
Modified: trunk/reactos/dll/win32/syssetup/install.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/install.c?rev=51006&r1=51005&r2=51006&view=diff
==============================================================================
--- trunk/reactos/dll/win32/syssetup/install.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/syssetup/install.c [iso-8859-1] Thu Mar 10 10:36:49 2011
@@ -506,7 +506,7 @@
}
ret = StartServiceW(hService, 0, NULL);
- if (!ret)
+ if ((!ret) && (GetLastError() != ERROR_SERVICE_ALREADY_RUNNING))
{
DPRINT1("Unable to start service\n");
goto cleanup;
More information about the Ros-diffs
mailing list