[PATCH] dpvoice: Decrement reference count in IDirectPlayVoiceClient::Release.

Alex Henrie alexhenrie24 at gmail.com
Sun Dec 28 00:35:16 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 0fab0c5..b6bfcde 100644
--- a/dlls/dpvoice/client.c
+++ b/dlls/dpvoice/client.c
@@ -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);
 
-- 
2.2.1




More information about the wine-patches mailing list