Christian Costa : d3drm: Improve traces of AddRef and Release of IDirect3DRMLight.

Alexandre Julliard julliard at winehq.org
Thu May 17 13:45:59 CDT 2012


Module: wine
Branch: master
Commit: 8aba0e2ec3223ae29e470e0c0bf515ae31bd1cce
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8aba0e2ec3223ae29e470e0c0bf515ae31bd1cce

Author: Christian Costa <titan.costa at gmail.com>
Date:   Thu May 17 10:09:57 2012 +0200

d3drm: Improve traces of AddRef and Release of IDirect3DRMLight.

---

 dlls/d3drm/light.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/dlls/d3drm/light.c b/dlls/d3drm/light.c
index 7247763..82ec825 100644
--- a/dlls/d3drm/light.c
+++ b/dlls/d3drm/light.c
@@ -67,10 +67,11 @@ static HRESULT WINAPI IDirect3DRMLightImpl_QueryInterface(IDirect3DRMLight* ifac
 static ULONG WINAPI IDirect3DRMLightImpl_AddRef(IDirect3DRMLight* iface)
 {
     IDirect3DRMLightImpl *This = impl_from_IDirect3DRMLight(iface);
+    ULONG ref = InterlockedIncrement(&This->ref);
 
-    TRACE("(%p)\n", This);
+    TRACE("(%p)->(): new ref = %d\n", iface, ref);
 
-    return InterlockedIncrement(&This->ref);
+    return ref;
 }
 
 static ULONG WINAPI IDirect3DRMLightImpl_Release(IDirect3DRMLight* iface)
@@ -78,7 +79,7 @@ static ULONG WINAPI IDirect3DRMLightImpl_Release(IDirect3DRMLight* iface)
     IDirect3DRMLightImpl *This = impl_from_IDirect3DRMLight(iface);
     ULONG ref = InterlockedDecrement(&This->ref);
 
-    TRACE("(%p)\n", This);
+    TRACE("(%p)->(): new ref = %d\n", iface, ref);
 
     if (!ref)
         HeapFree(GetProcessHeap(), 0, This);




More information about the wine-cvs mailing list