Commit 8479229a authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

dpvoice: Decrement reference count in Release functions.

parent c1344662
......@@ -83,7 +83,7 @@ static ULONG WINAPI dpvclient_AddRef(IDirectPlayVoiceClient *iface)
static ULONG WINAPI dpvclient_Release(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);
......@@ -270,7 +270,7 @@ static ULONG WINAPI dpvtest_AddRef(IDirectPlayVoiceTest *iface)
static ULONG WINAPI dpvtest_Release(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);
......
......@@ -68,10 +68,11 @@ static ULONG WINAPI dpvserver_AddRef(IDirectPlayVoiceServer *iface)
return ref;
}
static ULONG WINAPI dpvserver_Release(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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment