Let StartServiceCtrlDispatcher handle services not started by

StartService.
This commit is contained in:
Aric Stewart 2004-08-17 22:29:01 +00:00 committed by Alexandre Julliard
parent b7add83287
commit 4a18630fef
1 changed files with 3 additions and 4 deletions

View File

@ -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;
}