[3/5] d3drm: Forward all IUnknown methods from IDirect3DRMDevice3
André Hentschel
nerv at dawncrow.de
Tue Jan 17 15:58:58 CST 2012
---
dlls/d3drm/device.c | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
diff --git a/dlls/d3drm/device.c b/dlls/d3drm/device.c
index 8be92e6..559128e 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 ***/
--
Best Regards, André Hentschel
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Nachrichtenteil als Anhang
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20120117/e3b6f0eb/attachment-0001.ksh>
More information about the wine-patches
mailing list