Commit 67bae9f2 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

ConnectNamedPipe returning ERROR_PIPE_CONNECTED is not an error.

parent c6559a10
......@@ -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;
......
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