rpcrt4: Add a reference to the binding object in I_RpcNegotiateTransferSyntax and release the reference in I_RpcFreeBuffer.

Robert Shearman rob at codeweavers.com
Tue Apr 1 06:48:15 CDT 2008


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 destory if necessary, not always destroy.
---
  dlls/rpcrt4/rpc_binding.c   |   14 ++++++--------
  dlls/rpcrt4/rpc_binding.h   |    4 ++--
  dlls/rpcrt4/rpc_message.c   |    4 ++++
  dlls/rpcrt4/rpc_transport.c |    2 +-
  4 files changed, 13 insertions(+), 11 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6f82f367b9b7ce6e90515da35a7b37762034a6b1.diff
Type: text/x-patch
Size: 3903 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080401/627dcfe0/attachment.bin 


More information about the wine-patches mailing list