Commit 9bb129d1 authored by Alexandre Julliard's avatar Alexandre Julliard

advapi32: Silence the pipe read error in the normal case.

parent 338539c7
...@@ -615,9 +615,15 @@ static DWORD WINAPI service_control_dispatcher(LPVOID arg) ...@@ -615,9 +615,15 @@ static DWORD WINAPI service_control_dispatcher(LPVOID arg)
DWORD count, req[2] = {0,0}; DWORD count, req[2] = {0,0};
r = ReadFile( pipe, &req, sizeof req, &count, NULL ); r = ReadFile( pipe, &req, sizeof req, &count, NULL );
if (!r || count!=sizeof req) if (!r)
{ {
ERR("pipe read failed\n"); if (GetLastError() != ERROR_BROKEN_PIPE)
ERR( "pipe read failed error %u\n", GetLastError() );
break;
}
if (count != sizeof(req))
{
ERR( "partial pipe read %u\n", count );
break; break;
} }
......
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