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

by dumping information about the interface it is trying to bind to.
This commit is contained in:
Robert Shearman 2006-08-04 12:55:44 +01:00 committed by Alexandre Julliard
parent 4582a2bb8e
commit 488c0a0423

View File

@ -293,7 +293,10 @@ RPC_STATUS RPCRT4_OpenBinding(RpcBinding* Binding, RpcConnection** Connection,
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;