dmsynth: Display new ref in trace for AddRef and Release.
This commit is contained in:
parent
4a53e89c11
commit
90085afebf
|
@ -60,23 +60,23 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_QueryInterface(LPDIRECTMUSICSYNTH8
|
|||
static ULONG WINAPI IDirectMusicSynth8Impl_AddRef(LPDIRECTMUSICSYNTH8 iface)
|
||||
{
|
||||
IDirectMusicSynth8Impl *This = impl_from_IDirectMusicSynth8(iface);
|
||||
ULONG refCount = InterlockedIncrement(&This->ref);
|
||||
ULONG ref = InterlockedIncrement(&This->ref);
|
||||
|
||||
TRACE("(%p)->(ref before=%u)\n", This, refCount - 1);
|
||||
TRACE("(%p)->(): new ref = %u\n", This, ref);
|
||||
|
||||
DMSYNTH_LockModule();
|
||||
|
||||
return refCount;
|
||||
return ref;
|
||||
}
|
||||
|
||||
static ULONG WINAPI IDirectMusicSynth8Impl_Release(LPDIRECTMUSICSYNTH8 iface)
|
||||
{
|
||||
IDirectMusicSynth8Impl *This = impl_from_IDirectMusicSynth8(iface);
|
||||
ULONG refCount = InterlockedDecrement(&This->ref);
|
||||
ULONG ref = InterlockedDecrement(&This->ref);
|
||||
|
||||
TRACE("(%p)->(ref before=%u)\n", This, refCount + 1);
|
||||
TRACE("(%p)->(): new ref = %u\n", This, ref);
|
||||
|
||||
if (!refCount) {
|
||||
if (!ref) {
|
||||
if (This->pLatencyClock)
|
||||
IReferenceClock_Release(This->pLatencyClock);
|
||||
HeapFree(GetProcessHeap(), 0, This);
|
||||
|
@ -84,7 +84,7 @@ static ULONG WINAPI IDirectMusicSynth8Impl_Release(LPDIRECTMUSICSYNTH8 iface)
|
|||
|
||||
DMSYNTH_UnlockModule();
|
||||
|
||||
return refCount;
|
||||
return ref;
|
||||
}
|
||||
|
||||
/* IDirectMusicSynth8Impl IDirectMusicSynth part: */
|
||||
|
|
|
@ -54,23 +54,23 @@ static HRESULT WINAPI IDirectMusicSynthSinkImpl_QueryInterface(LPDIRECTMUSICSYNT
|
|||
static ULONG WINAPI IDirectMusicSynthSinkImpl_AddRef(LPDIRECTMUSICSYNTHSINK iface)
|
||||
{
|
||||
IDirectMusicSynthSinkImpl *This = impl_from_IDirectMusicSynthSink(iface);
|
||||
ULONG refCount = InterlockedIncrement(&This->ref);
|
||||
ULONG ref = InterlockedIncrement(&This->ref);
|
||||
|
||||
TRACE("(%p)->(ref before=%u)\n", This, refCount - 1);
|
||||
TRACE("(%p)->(): new ref = %u\n", This, ref);
|
||||
|
||||
DMSYNTH_LockModule();
|
||||
|
||||
return refCount;
|
||||
return ref;
|
||||
}
|
||||
|
||||
static ULONG WINAPI IDirectMusicSynthSinkImpl_Release(LPDIRECTMUSICSYNTHSINK iface)
|
||||
{
|
||||
IDirectMusicSynthSinkImpl *This = impl_from_IDirectMusicSynthSink(iface);
|
||||
ULONG refCount = InterlockedDecrement(&This->ref);
|
||||
ULONG ref = InterlockedDecrement(&This->ref);
|
||||
|
||||
TRACE("(%p)->(ref before=%u)\n", This, refCount + 1);
|
||||
TRACE("(%p)->(): new ref = %u\n", This, ref);
|
||||
|
||||
if (!refCount) {
|
||||
if (!ref) {
|
||||
if (This->latency_clock)
|
||||
IReferenceClock_Release(This->latency_clock);
|
||||
HeapFree(GetProcessHeap(), 0, This);
|
||||
|
@ -78,7 +78,7 @@ static ULONG WINAPI IDirectMusicSynthSinkImpl_Release(LPDIRECTMUSICSYNTHSINK ifa
|
|||
|
||||
DMSYNTH_UnlockModule();
|
||||
|
||||
return refCount;
|
||||
return ref;
|
||||
}
|
||||
|
||||
/* IDirectMusicSynthSinkImpl IDirectMusicSynthSink part: */
|
||||
|
|
Loading…
Reference in New Issue