d3drm: Add refcount info to AddRef and Release traces.

oldstable
Christian Costa 2012-03-16 08:16:10 +01:00 committed by Alexandre Julliard
parent 549f8796dd
commit ea532f633c
5 changed files with 20 additions and 15 deletions

View File

@ -87,10 +87,11 @@ static HRESULT WINAPI IDirect3DRMImpl_QueryInterface(IDirect3DRM* iface, REFIID
static ULONG WINAPI IDirect3DRMImpl_AddRef(IDirect3DRM* iface)
{
IDirect3DRMImpl *This = impl_from_IDirect3DRM(iface);
ULONG ref = InterlockedIncrement(&This->ref);
TRACE("(%p/%p)\n", iface, This);
TRACE("(%p/%p)->(): new ref = %d\n", iface, This, ref);
return InterlockedIncrement(&This->ref);
return ref;
}
static ULONG WINAPI IDirect3DRMImpl_Release(IDirect3DRM* iface)
@ -98,7 +99,7 @@ static ULONG WINAPI IDirect3DRMImpl_Release(IDirect3DRM* iface)
IDirect3DRMImpl *This = impl_from_IDirect3DRM(iface);
ULONG ref = InterlockedDecrement(&This->ref);
TRACE("(%p/%p)\n", iface, This);
TRACE("(%p/%p)->(): new ref = %d\n", iface, This, ref);
if (!ref)
HeapFree(GetProcessHeap(), 0, This);

View File

@ -93,10 +93,11 @@ static HRESULT WINAPI IDirect3DRMDevice2Impl_QueryInterface(IDirect3DRMDevice2*
static ULONG WINAPI IDirect3DRMDevice2Impl_AddRef(IDirect3DRMDevice2* iface)
{
IDirect3DRMDeviceImpl *This = impl_from_IDirect3DRMDevice2(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 IDirect3DRMDevice2Impl_Release(IDirect3DRMDevice2* iface)
@ -104,7 +105,7 @@ static ULONG WINAPI IDirect3DRMDevice2Impl_Release(IDirect3DRMDevice2* iface)
IDirect3DRMDeviceImpl *This = impl_from_IDirect3DRMDevice2(iface);
ULONG ref = InterlockedDecrement(&This->ref);
TRACE("(%p)\n", This);
TRACE("(%p)->(): new ref = %d\n", iface, ref);
if (!ref)
HeapFree(GetProcessHeap(), 0, This);

View File

@ -78,10 +78,11 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_QueryInterface(IDirect3DRMFrame2* if
static ULONG WINAPI IDirect3DRMFrame2Impl_AddRef(IDirect3DRMFrame2* iface)
{
IDirect3DRMFrameImpl *This = impl_from_IDirect3DRMFrame2(iface);
ULONG ref = InterlockedIncrement(&This->ref);
TRACE("(%p)\n", This);
TRACE("(%p)->(): new ref = %d\n", This, ref);
return InterlockedIncrement(&This->ref);
return ref;
}
static ULONG WINAPI IDirect3DRMFrame2Impl_Release(IDirect3DRMFrame2* iface)
@ -89,7 +90,7 @@ static ULONG WINAPI IDirect3DRMFrame2Impl_Release(IDirect3DRMFrame2* iface)
IDirect3DRMFrameImpl *This = impl_from_IDirect3DRMFrame2(iface);
ULONG ref = InterlockedDecrement(&This->ref);
TRACE("(%p)\n", This);
TRACE("(%p)->(): new ref = %d\n", This, ref);
if (!ref)
HeapFree(GetProcessHeap(), 0, This);

View File

@ -322,10 +322,11 @@ static HRESULT WINAPI IDirect3DRMMeshBuilder2Impl_QueryInterface(IDirect3DRMMesh
static ULONG WINAPI IDirect3DRMMeshBuilder2Impl_AddRef(IDirect3DRMMeshBuilder2* iface)
{
IDirect3DRMMeshBuilderImpl *This = impl_from_IDirect3DRMMeshBuilder2(iface);
ULONG ref = InterlockedIncrement(&This->ref);
TRACE("(%p)\n", This);
TRACE("(%p)->(): new ref = %d\n", This, ref);
return InterlockedIncrement(&This->ref);
return ref;
}
static ULONG WINAPI IDirect3DRMMeshBuilder2Impl_Release(IDirect3DRMMeshBuilder2* iface)
@ -333,7 +334,7 @@ static ULONG WINAPI IDirect3DRMMeshBuilder2Impl_Release(IDirect3DRMMeshBuilder2*
IDirect3DRMMeshBuilderImpl *This = impl_from_IDirect3DRMMeshBuilder2(iface);
ULONG ref = InterlockedDecrement(&This->ref);
TRACE("(%p)\n", This);
TRACE("(%p)->(): new ref = %d\n", This, ref);
if (!ref)
{

View File

@ -80,10 +80,11 @@ static HRESULT WINAPI IDirect3DRMViewportImpl_QueryInterface(IDirect3DRMViewport
static ULONG WINAPI IDirect3DRMViewportImpl_AddRef(IDirect3DRMViewport* iface)
{
IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
ULONG ref = InterlockedIncrement(&This->ref);
TRACE("(%p)\n", This);
TRACE("(%p)->(): new ref = %d\n", This, ref);
return InterlockedIncrement(&This->ref);
return ref;
}
static ULONG WINAPI IDirect3DRMViewportImpl_Release(IDirect3DRMViewport* iface)
@ -91,7 +92,7 @@ static ULONG WINAPI IDirect3DRMViewportImpl_Release(IDirect3DRMViewport* iface)
IDirect3DRMViewportImpl *This = impl_from_IDirect3DRMViewport(iface);
ULONG ref = InterlockedDecrement(&This->ref);
TRACE("(%p)\n", This);
TRACE("(%p)->(): new ref = %d\n", This, ref);
if (!ref)
HeapFree(GetProcessHeap(), 0, This);