Let StartServiceCtrlDispatcher handle services not started by
StartService.
This commit is contained in:
parent
b7add83287
commit
4a18630fef
|
@ -89,11 +89,10 @@ StartServiceCtrlDispatcherA( LPSERVICE_TABLE_ENTRYA servent )
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
TRACE("(%p)\n", servent);
|
TRACE("(%p)\n", servent);
|
||||||
wait = OpenSemaphoreW(SEMAPHORE_ALL_ACCESS, FALSE, _ServiceStartDataW);
|
wait = CreateSemaphoreW(NULL,1,1,_ServiceStartDataW);
|
||||||
if(wait == 0)
|
if (!wait)
|
||||||
{
|
{
|
||||||
ERR("Couldn't find wait semaphore\n");
|
ERR("Couldn't create data semaphore\n");
|
||||||
ERR("perhaps you need to start services using StartService\n");
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue