Robert Shearman : rpcrt4: Make the error output on a failed binding more informative

Alexandre Julliard julliard at wine.codeweavers.com
Fri Aug 4 14:57:26 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 488c0a0423d68add919566a61a28e43520ac68f8
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=488c0a0423d68add919566a61a28e43520ac68f8

Author: Robert Shearman <rob at codeweavers.com>
Date:   Fri Aug  4 12:55:44 2006 +0100

rpcrt4: Make the error output on a failed binding more informative
by dumping information about the interface it is trying to bind to.

---

 dlls/rpcrt4/rpc_binding.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/rpcrt4/rpc_binding.c b/dlls/rpcrt4/rpc_binding.c
index 363ee90..0cd81ad 100644
--- a/dlls/rpcrt4/rpc_binding.c
+++ b/dlls/rpcrt4/rpc_binding.c
@@ -293,7 +293,10 @@ RPC_STATUS RPCRT4_OpenBinding(RpcBinding
 
     if (response_hdr->common.ptype != PKT_BIND_ACK ||
         response_hdr->bind_ack.max_tsize < RPC_MIN_PACKET_SIZE) {
-      ERR("failed to bind\n");
+      ERR("failed to bind for interface %s, %d.%d\n",
+        debugstr_guid(&InterfaceId->SyntaxGUID),
+        InterfaceId->SyntaxVersion.MajorVersion,
+        InterfaceId->SyntaxVersion.MinorVersion);
       RPCRT4_FreeHeader(response_hdr);
       RPCRT4_DestroyConnection(NewConnection);
       return RPC_S_PROTOCOL_ERROR;




More information about the wine-cvs mailing list