d3drm: Improve traces of AddRef and Release of IDirect3DRMLight.

This commit is contained in:
Christian Costa 2012-05-17 10:09:57 +02:00 committed by Alexandre Julliard
parent 2dbbecbb9e
commit 8aba0e2ec3
1 changed files with 4 additions and 3 deletions

View File

@ -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);