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.... ============================================================================== --- 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;