[OLE #77] Suppress some harmless warnings in the RPC runtime

Mike Hearn mike at navi.cx
Thu Mar 3 09:21:55 CST 2005


Suppress some harmless warnings in the RPC runtime

--- dlls/rpcrt4/rpc_binding.c  (revision 147)
+++ dlls/rpcrt4/rpc_binding.c  (local)
@@ -173,13 +173,13 @@ RPC_STATUS RPCRT4_OpenConnection(RpcConn
         memset(&Connection->ovl, 0, sizeof(Connection->ovl));
         Connection->ovl.hEvent = CreateEventW(NULL, TRUE, FALSE, NULL);
         if (!ConnectNamedPipe(Connection->conn, &Connection->ovl)) {
-          WARN("Couldn't ConnectNamedPipe (error was %ld)\n", GetLastError());
           if (GetLastError() == ERROR_PIPE_CONNECTED) {
             SetEvent(Connection->ovl.hEvent);
             return RPC_S_OK;
           } else if (GetLastError() == ERROR_IO_PENDING) {
             return RPC_S_OK;
           }
+          WARN("Couldn't ConnectNamedPipe (error was %ld)\n", GetLastError());
           return RPC_S_SERVER_UNAVAILABLE;
         }
       }
@@ -213,7 +213,7 @@ RPC_STATUS RPCRT4_OpenConnection(RpcConn
             return RPC_S_SERVER_TOO_BUSY;
           } else {
             err = GetLastError();
-            TRACE("connection failed, error=%lx\n", err);
+            WARN("connection failed, error=%lx\n", err);
             HeapFree(GetProcessHeap(), 0, pname);
             return RPC_S_SERVER_UNAVAILABLE;
           }
@@ -245,7 +245,7 @@ RPC_STATUS RPCRT4_OpenConnection(RpcConn
           err = GetLastError();
           /* we don't need to handle ERROR_PIPE_BUSY here,
            * the doc says that it is returned to the app */
-          TRACE("connection failed, error=%lx\n", err);
+          WARN("connection failed, error=%lx\n", err);
           HeapFree(GetProcessHeap(), 0, pname);
           if (err == ERROR_PIPE_BUSY)
             return RPC_S_SERVER_TOO_BUSY;



More information about the wine-patches mailing list