d3drm: Forward all IUnknown methods from IDirect3DRMDevice3.

This commit is contained in:
André Hentschel 2012-01-17 22:58:58 +01:00 committed by Alexandre Julliard
parent e1c00d32ed
commit d05f3e06c8
1 changed files with 2 additions and 12 deletions

View File

@ -524,23 +524,13 @@ static HRESULT WINAPI IDirect3DRMDevice3Impl_QueryInterface(IDirect3DRMDevice3*
static ULONG WINAPI IDirect3DRMDevice3Impl_AddRef(IDirect3DRMDevice3* iface) static ULONG WINAPI IDirect3DRMDevice3Impl_AddRef(IDirect3DRMDevice3* iface)
{ {
IDirect3DRMDeviceImpl *This = impl_from_IDirect3DRMDevice3(iface); IDirect3DRMDeviceImpl *This = impl_from_IDirect3DRMDevice3(iface);
return IDirect3DRMDevice2_AddRef(&This->IDirect3DRMDevice2_iface);
TRACE("(%p)\n", This);
return InterlockedIncrement(&This->ref);
} }
static ULONG WINAPI IDirect3DRMDevice3Impl_Release(IDirect3DRMDevice3* iface) static ULONG WINAPI IDirect3DRMDevice3Impl_Release(IDirect3DRMDevice3* iface)
{ {
IDirect3DRMDeviceImpl *This = impl_from_IDirect3DRMDevice3(iface); IDirect3DRMDeviceImpl *This = impl_from_IDirect3DRMDevice3(iface);
ULONG ref = InterlockedDecrement(&This->ref); return IDirect3DRMDevice2_Release(&This->IDirect3DRMDevice2_iface);
TRACE("(%p)\n", This);
if (!ref)
HeapFree(GetProcessHeap(), 0, This);
return ref;
} }
/*** IDirect3DRMObject methods ***/ /*** IDirect3DRMObject methods ***/