From 67bae9f213ae8a6d6ef60f81ce338e057515f7f3 Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Thu, 6 Jan 2005 19:38:48 +0000 Subject: [PATCH] ConnectNamedPipe returning ERROR_PIPE_CONNECTED is not an error. --- dlls/ole32/rpc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/ole32/rpc.c b/dlls/ole32/rpc.c index e469ae7fe59..948253d6cfe 100644 --- a/dlls/ole32/rpc.c +++ b/dlls/ole32/rpc.c @@ -930,7 +930,9 @@ static DWORD WINAPI apartment_listener_thread(LPVOID p) return 1; /* permanent failure, so quit stubmgr thread */ } - if (!ConnectNamedPipe(listenPipe,NULL)) { + /* an already connected pipe is not an error */ + if (!ConnectNamedPipe(listenPipe,NULL) && + (GetLastError() != ERROR_PIPE_CONNECTED)) { ERR("Failure during ConnectNamedPipe %ld!\n",GetLastError()); CloseHandle(listenPipe); continue;