Author: dgorbachev
Date: Sat Feb 20 01:32:31 2010
New Revision: 45629
URL:
http://svn.reactos.org/svn/reactos?rev=45629&view=rev
Log:
[SYSSETUP] Wait until all autostart services are up. Bug #4194.
Modified:
branches/arwinss/reactos/dll/win32/syssetup/install.c
Modified: branches/arwinss/reactos/dll/win32/syssetup/install.c
URL:
http://svn.reactos.org/svn/reactos/branches/arwinss/reactos/dll/win32/sysse…
==============================================================================
--- branches/arwinss/reactos/dll/win32/syssetup/install.c [iso-8859-1] (original)
+++ branches/arwinss/reactos/dll/win32/syssetup/install.c [iso-8859-1] Sat Feb 20 01:32:31
2010
@@ -481,9 +481,18 @@
DWORD BytesNeeded = 0;
DWORD dwWaitTime;
DWORD dwMaxWait;
+ HANDLE hEvent;
BOOL ret = FALSE;
- hSCManager = OpenSCManager(NULL, NULL, 0);
+ hEvent = OpenEventW(EVENT_ALL_ACCESS,
+ FALSE,
+ L"SC_AutoStartComplete");
+ if (hEvent == NULL)
+ goto cleanup;
+
+ WaitForSingleObject(hEvent, INFINITE);
+
+ hSCManager = OpenSCManager(NULL, NULL, SC_MANAGER_CONNECT);
if (hSCManager == NULL)
goto cleanup;