services: Accept SERVICE_START_PENDING as valid service start status.

This commit is contained in:
Piotr Caban 2011-12-09 13:33:32 +01:00 committed by Alexandre Julliard
parent 7c3728d728
commit 8e915c51e1
1 changed files with 6 additions and 1 deletions

View File

@ -711,7 +711,12 @@ static DWORD service_wait_for_startup(struct service_entry *service_entry, HANDL
service_lock_shared(service_entry);
dwCurrentStatus = service_entry->status.dwCurrentState;
service_unlock(service_entry);
if (dwCurrentStatus == SERVICE_RUNNING)
if (dwCurrentStatus == SERVICE_START_PENDING)
{
WINE_TRACE("Service changed its status to SERVICE_START_PENDING\n");
return ERROR_SUCCESS;
}
else if (dwCurrentStatus == SERVICE_RUNNING)
{
WINE_TRACE("Service started successfully\n");
return ERROR_SUCCESS;