dpvoice: Decrement reference count in Release functions.
This commit is contained in:
parent
c134466224
commit
8479229ae8
|
@ -83,7 +83,7 @@ static ULONG WINAPI dpvclient_AddRef(IDirectPlayVoiceClient *iface)
|
||||||
static ULONG WINAPI dpvclient_Release(IDirectPlayVoiceClient *iface)
|
static ULONG WINAPI dpvclient_Release(IDirectPlayVoiceClient *iface)
|
||||||
{
|
{
|
||||||
IDirectPlayVoiceClientImpl *This = impl_from_IDirectPlayVoiceClient(iface);
|
IDirectPlayVoiceClientImpl *This = impl_from_IDirectPlayVoiceClient(iface);
|
||||||
ULONG ref = InterlockedIncrement(&This->ref);
|
ULONG ref = InterlockedDecrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p) ref=%u\n", This, ref);
|
TRACE("(%p) ref=%u\n", This, ref);
|
||||||
|
|
||||||
|
@ -270,7 +270,7 @@ static ULONG WINAPI dpvtest_AddRef(IDirectPlayVoiceTest *iface)
|
||||||
static ULONG WINAPI dpvtest_Release(IDirectPlayVoiceTest *iface)
|
static ULONG WINAPI dpvtest_Release(IDirectPlayVoiceTest *iface)
|
||||||
{
|
{
|
||||||
IDirectPlayVoiceTestImpl *This = impl_from_IDirectPlayVoiceTest(iface);
|
IDirectPlayVoiceTestImpl *This = impl_from_IDirectPlayVoiceTest(iface);
|
||||||
ULONG ref = InterlockedIncrement(&This->ref);
|
ULONG ref = InterlockedDecrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p) ref=%u\n", This, ref);
|
TRACE("(%p) ref=%u\n", This, ref);
|
||||||
|
|
||||||
|
|
|
@ -68,10 +68,11 @@ static ULONG WINAPI dpvserver_AddRef(IDirectPlayVoiceServer *iface)
|
||||||
|
|
||||||
return ref;
|
return ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ULONG WINAPI dpvserver_Release(IDirectPlayVoiceServer *iface)
|
static ULONG WINAPI dpvserver_Release(IDirectPlayVoiceServer *iface)
|
||||||
{
|
{
|
||||||
IDirectPlayVoiceServerImpl *This = impl_from_IDirectPlayVoiceServer(iface);
|
IDirectPlayVoiceServerImpl *This = impl_from_IDirectPlayVoiceServer(iface);
|
||||||
ULONG ref = InterlockedIncrement(&This->ref);
|
ULONG ref = InterlockedDecrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p) ref=%u\n", This, ref);
|
TRACE("(%p) ref=%u\n", This, ref);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue