Commit 6d6e6600 authored by Alexander Morozov's avatar Alexander Morozov Committed by Alexandre Julliard

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

parent bf066791
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment