rpcrt4: Add a reference to the binding object in I_RpcNegotiateTransferSyntax and...
commit8aeb2858e44627c2002b9a20483a2a9c78a2aa3f
authorRob Shearman <rob@codeweavers.com>
Tue, 1 Apr 2008 11:48:15 +0000 (1 12:48 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 1 Apr 2008 17:11:00 +0000 (1 19:11 +0200)
tree4449b3e95401545c3c339cbeda7bea7704a4a82a
parentc7f9b9347fdf7a073329d9b3fada993c2ea74717
rpcrt4: Add a reference to the binding object in I_RpcNegotiateTransferSyntax and release the reference in I_RpcFreeBuffer.

This is needed because a context binding handle could be released on
unmarshall, but it still needs to stay valid until the binding handle is
no longer being used.

Re-use the previously unused RPCRT4_ExportBinding function as
RPCRT4_AddRefBinding and rename RPCRT4_DestroyBinding to
RPCRT4_ReleaseBinding to show that it's purpose is to release a
reference count and destroy if necessary, not always destroy.
dlls/rpcrt4/rpc_binding.c
dlls/rpcrt4/rpc_binding.h
dlls/rpcrt4/rpc_message.c
dlls/rpcrt4/rpc_transport.c