advapi32: Regular program should not freeze forever if it calls StartServiceCtrlDispatcher.

oldstable
Alexander Morozov 2012-03-30 20:04:01 +04:00 committed by Alexandre Julliard
parent bf066791e0
commit 6d6e6600ef
1 changed files with 2 additions and 2 deletions

View File

@ -242,7 +242,7 @@ static HANDLE service_open_pipe(void)
break;
if (GetLastError() != ERROR_PIPE_BUSY)
break;
} while (WaitNamedPipeW(szPipe, NMPWAIT_WAIT_FOREVER));
} while (WaitNamedPipeW(szPipe, NMPWAIT_USE_DEFAULT_WAIT));
HeapFree(GetProcessHeap(), 0, szPipe);
return handle;
@ -366,7 +366,7 @@ static DWORD WINAPI service_control_dispatcher(LPVOID arg)
if (pipe==INVALID_HANDLE_VALUE)
{
ERR("failed to create control pipe error = %d\n", GetLastError());
WARN("failed to create control pipe error = %d\n", GetLastError());
return 0;
}