=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: d3drm: Forward all IUnknown methods from IDirect3DRMFrame3.

Alexandre Julliard julliard at winehq.org
Mon Jan 23 13:00:58 CST 2012


Module: wine
Branch: master
Commit: dc700123cb8daa05899ea86089c8fa5c99cd9194
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=dc700123cb8daa05899ea86089c8fa5c99cd9194

Author: André Hentschel <nerv at dawncrow.de>
Date:   Sun Jan 22 18:35:53 2012 +0100

d3drm: Forward all IUnknown methods from IDirect3DRMFrame3.

---

 dlls/d3drm/frame.c |   14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/dlls/d3drm/frame.c b/dlls/d3drm/frame.c
index 7c0d97a..d91def8 100644
--- a/dlls/d3drm/frame.c
+++ b/dlls/d3drm/frame.c
@@ -939,23 +939,13 @@ static HRESULT WINAPI IDirect3DRMFrame3Impl_QueryInterface(IDirect3DRMFrame3* if
 static ULONG WINAPI IDirect3DRMFrame3Impl_AddRef(IDirect3DRMFrame3* iface)
 {
     IDirect3DRMFrameImpl *This = impl_from_IDirect3DRMFrame3(iface);
-
-    TRACE("(%p)\n", This);
-
-    return InterlockedIncrement(&This->ref);
+    return IDirect3DRMFrame2_AddRef(&This->IDirect3DRMFrame2_iface);
 }
 
 static ULONG WINAPI IDirect3DRMFrame3Impl_Release(IDirect3DRMFrame3* iface)
 {
     IDirect3DRMFrameImpl *This = impl_from_IDirect3DRMFrame3(iface);
-    ULONG ref = InterlockedDecrement(&This->ref);
-
-    TRACE("(%p)\n", This);
-
-    if (!ref)
-        HeapFree(GetProcessHeap(), 0, This);
-
-    return ref;
+    return IDirect3DRMFrame2_Release(&This->IDirect3DRMFrame2_iface);
 }
 
 /*** IDirect3DRMObject methods ***/




More information about the wine-cvs mailing list