From d05f3e06c850b32285ebc94282aa36106d0f2abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= Date: Tue, 17 Jan 2012 22:58:58 +0100 Subject: [PATCH] d3drm: Forward all IUnknown methods from IDirect3DRMDevice3. --- dlls/d3drm/device.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/dlls/d3drm/device.c b/dlls/d3drm/device.c index 8be92e6f17e..559128e7a9b 100644 --- a/dlls/d3drm/device.c +++ b/dlls/d3drm/device.c @@ -524,23 +524,13 @@ static HRESULT WINAPI IDirect3DRMDevice3Impl_QueryInterface(IDirect3DRMDevice3* static ULONG WINAPI IDirect3DRMDevice3Impl_AddRef(IDirect3DRMDevice3* iface) { IDirect3DRMDeviceImpl *This = impl_from_IDirect3DRMDevice3(iface); - - TRACE("(%p)\n", This); - - return InterlockedIncrement(&This->ref); + return IDirect3DRMDevice2_AddRef(&This->IDirect3DRMDevice2_iface); } static ULONG WINAPI IDirect3DRMDevice3Impl_Release(IDirect3DRMDevice3* iface) { IDirect3DRMDeviceImpl *This = impl_from_IDirect3DRMDevice3(iface); - ULONG ref = InterlockedDecrement(&This->ref); - - TRACE("(%p)\n", This); - - if (!ref) - HeapFree(GetProcessHeap(), 0, This); - - return ref; + return IDirect3DRMDevice2_Release(&This->IDirect3DRMDevice2_iface); } /*** IDirect3DRMObject methods ***/