rpcrt4: Print a warning if connecting to a named pipe failed in rpcrt4_conn_open_pipe in the !wait case.
This commit is contained in:
parent
d2d513db74
commit
0a5e5a6e5b
|
@ -210,9 +210,7 @@ static RPC_STATUS rpcrt4_conn_open_pipe(RpcConnection *Connection, LPCSTR pname,
|
|||
TRACE("connection failed, error=%x\n", err);
|
||||
return RPC_S_SERVER_TOO_BUSY;
|
||||
}
|
||||
if (!wait)
|
||||
return RPC_S_SERVER_UNAVAILABLE;
|
||||
if (!WaitNamedPipeA(pname, NMPWAIT_WAIT_FOREVER)) {
|
||||
if (!wait || !WaitNamedPipeA(pname, NMPWAIT_WAIT_FOREVER)) {
|
||||
err = GetLastError();
|
||||
WARN("connection failed, error=%x\n", err);
|
||||
return RPC_S_SERVER_UNAVAILABLE;
|
||||
|
|
Loading…
Reference in New Issue