Skip to content
Snippets Groups Projects
Commit 4a18630f authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard
Browse files

Let StartServiceCtrlDispatcher handle services not started by

StartService.
parent b7add832
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment