Commit d05f3e06 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

d3drm: Forward all IUnknown methods from IDirect3DRMDevice3.

parent e1c00d32
......@@ -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 ***/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment