Commit 4a18630f authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

Let StartServiceCtrlDispatcher handle services not started by

StartService.
parent b7add832
......@@ -89,11 +89,10 @@ StartServiceCtrlDispatcherA( LPSERVICE_TABLE_ENTRYA servent )
int i;
TRACE("(%p)\n", servent);
wait = OpenSemaphoreW(SEMAPHORE_ALL_ACCESS, FALSE, _ServiceStartDataW);
if(wait == 0)
wait = CreateSemaphoreW(NULL,1,1,_ServiceStartDataW);
if (!wait)
{
ERR("Couldn't find wait semaphore\n");
ERR("perhaps you need to start services using StartService\n");
ERR("Couldn't create data semaphore\n");
return FALSE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment