[PATCH 4/5] d3drm: Improve traces of AddRef and Release of IDirect3DRMLight.
Christian Costa
titan.costa at gmail.com
Thu May 17 03:09:57 CDT 2012
---
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-patches
mailing list