From e7ffaab8762d8f620e978a7fc39b77fee72c0d7a Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Sun, 2 Jun 2013 12:59:06 +0000 Subject: [PATCH] [UMPNPMGR] - It is not an error when the client is already connected - Fixes random driver installation failures svn path=/trunk/; revision=59142 --- reactos/base/services/umpnpmgr/umpnpmgr.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/reactos/base/services/umpnpmgr/umpnpmgr.c b/reactos/base/services/umpnpmgr/umpnpmgr.c index 5f834707d73..12254267713 100644 --- a/reactos/base/services/umpnpmgr/umpnpmgr.c +++ b/reactos/base/services/umpnpmgr/umpnpmgr.c @@ -2886,8 +2886,11 @@ InstallDevice(PCWSTR DeviceInstance, BOOL ShowWizard) /* Wait for the function to connect to our pipe */ if(!ConnectNamedPipe(hPipe, NULL)) { - DPRINT1("ConnectNamedPipe failed with error %u\n", GetLastError()); - goto cleanup; + if (GetLastError() != ERROR_PIPE_CONNECTED) + { + DPRINT1("ConnectNamedPipe failed with error %u\n", GetLastError()); + goto cleanup; + } } /* Pass the data. The following output is partly compatible to Windows XP SP2 (researched using a modified newdev.dll to log this stuff) */