Module: wine Branch: master Commit: 9bb129d17b2522197ffa6535282e09f3b3aecfbb URL: http://source.winehq.org/git/wine.git/?a=commit;h=9bb129d17b2522197ffa653528...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Mar 31 17:26:07 2008 +0200
advapi32: Silence the pipe read error in the normal case.
---
dlls/advapi32/service.c | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/dlls/advapi32/service.c b/dlls/advapi32/service.c index b89022d..0d13442 100644 --- a/dlls/advapi32/service.c +++ b/dlls/advapi32/service.c @@ -615,9 +615,15 @@ static DWORD WINAPI service_control_dispatcher(LPVOID arg) DWORD count, req[2] = {0,0};
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; }