[PATCH] dpvoice: Decrement reference count in IDirectPlayVoiceTest::Release.
Alex Henrie
alexhenrie24 at gmail.com
Sun Dec 28 00:40:52 CST 2014
---
dlls/dpvoice/client.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dpvoice/client.c b/dlls/dpvoice/client.c
index b6bfcde..29b5336 100644
--- a/dlls/dpvoice/client.c
+++ b/dlls/dpvoice/client.c
@@ -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);
--
2.2.1
More information about the wine-patches
mailing list