[OLE #93] Add some tracing to the IRemUnknown RpcProxyBuffer implementation

Mike Hearn mike at navi.cx
Sat Jun 4 13:35:44 CDT 2005


Mike Hearn <mh at codeweavers.com>
[OLE #93] Add some tracing to the IRemUnknown RpcProxyBuffer implementation

Index: dlls/ole32/oleproxy.c
===================================================================
RCS file: /home/wine/wine/dlls/ole32/oleproxy.c,v
retrieving revision 1.32
diff -u -p -d -u -r1.32 oleproxy.c
--- dlls/ole32/oleproxy.c	19 May 2005 14:22:14 -0000	1.32
+++ dlls/ole32/oleproxy.c	4 Jun 2005 18:33:34 -0000
@@ -295,7 +295,8 @@ static ULONG WINAPI IRpcProxyBufferImpl_
     ULONG ref = InterlockedDecrement(&This->ref);
 
     if (!ref) {
-	IRpcChannelBuffer_Release(This->chanbuf);This->chanbuf = NULL;
+	IRpcChannelBuffer_Release(This->chanbuf);
+        This->chanbuf = NULL;
 	HeapFree(GetProcessHeap(),0,This);
     }
     return ref;
@@ -845,13 +846,14 @@ static HRESULT WINAPI RURpcProxyBufferIm
 
 static ULONG WINAPI RURpcProxyBufferImpl_AddRef(LPRPCPROXYBUFFER iface) {
     ICOM_THIS_MULTI(RemUnkProxy,lpvtbl_proxy,iface);
+    TRACE("%p, %ld\n", iface, This->refs + 1);
     return InterlockedIncrement(&This->refs);
 }
 
 static ULONG WINAPI RURpcProxyBufferImpl_Release(LPRPCPROXYBUFFER iface) {
     ICOM_THIS_MULTI(RemUnkProxy,lpvtbl_proxy,iface);
     ULONG ref = InterlockedDecrement(&This->refs);
-
+    TRACE("%p, %ld\n", iface, This->refs - 1);
     if (!ref) {
 	IRpcChannelBuffer_Release(This->chan);This->chan = NULL;
 	HeapFree(GetProcessHeap(),0,This);
@@ -862,12 +864,14 @@ static ULONG WINAPI RURpcProxyBufferImpl
 static HRESULT WINAPI RURpcProxyBufferImpl_Connect(LPRPCPROXYBUFFER iface,IRpcChannelBuffer* pRpcChannelBuffer) {
     ICOM_THIS_MULTI(RemUnkProxy,lpvtbl_proxy,iface);
 
+    TRACE("%p, %p\n", iface, pRpcChannelBuffer);
     This->chan = pRpcChannelBuffer;
     IRpcChannelBuffer_AddRef(This->chan);
     return S_OK;
 }
 static void WINAPI RURpcProxyBufferImpl_Disconnect(LPRPCPROXYBUFFER iface) {
     ICOM_THIS_MULTI(RemUnkProxy,lpvtbl_proxy,iface);
+    TRACE("%p, %p\n", iface, This->chan);
     if (This->chan) {
 	IRpcChannelBuffer_Release(This->chan);
 	This->chan = NULL;



More information about the wine-patches mailing list