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

d3drm: Forward all IUnknown methods to IDirect3DRM.

parent dfd7c70d
...@@ -452,23 +452,13 @@ static HRESULT WINAPI IDirect3DRM2Impl_QueryInterface(IDirect3DRM2* iface, REFII ...@@ -452,23 +452,13 @@ static HRESULT WINAPI IDirect3DRM2Impl_QueryInterface(IDirect3DRM2* iface, REFII
static ULONG WINAPI IDirect3DRM2Impl_AddRef(IDirect3DRM2* iface) static ULONG WINAPI IDirect3DRM2Impl_AddRef(IDirect3DRM2* iface)
{ {
IDirect3DRMImpl *This = impl_from_IDirect3DRM2(iface); IDirect3DRMImpl *This = impl_from_IDirect3DRM2(iface);
return IDirect3DRM_AddRef(&This->IDirect3DRM_iface);
TRACE("(%p/%p)\n", iface, This);
return InterlockedIncrement(&This->ref);
} }
static ULONG WINAPI IDirect3DRM2Impl_Release(IDirect3DRM2* iface) static ULONG WINAPI IDirect3DRM2Impl_Release(IDirect3DRM2* iface)
{ {
IDirect3DRMImpl *This = impl_from_IDirect3DRM2(iface); IDirect3DRMImpl *This = impl_from_IDirect3DRM2(iface);
ULONG ref = InterlockedDecrement(&This->ref); return IDirect3DRM_Release(&This->IDirect3DRM_iface);
TRACE("(%p/%p)\n", iface, This);
if (!ref)
HeapFree(GetProcessHeap(), 0, This);
return ref;
} }
/*** IDirect3DRM2 methods ***/ /*** IDirect3DRM2 methods ***/
...@@ -883,23 +873,13 @@ static HRESULT WINAPI IDirect3DRM3Impl_QueryInterface(IDirect3DRM3* iface, REFII ...@@ -883,23 +873,13 @@ static HRESULT WINAPI IDirect3DRM3Impl_QueryInterface(IDirect3DRM3* iface, REFII
static ULONG WINAPI IDirect3DRM3Impl_AddRef(IDirect3DRM3* iface) static ULONG WINAPI IDirect3DRM3Impl_AddRef(IDirect3DRM3* iface)
{ {
IDirect3DRMImpl *This = impl_from_IDirect3DRM3(iface); IDirect3DRMImpl *This = impl_from_IDirect3DRM3(iface);
return IDirect3DRM_AddRef(&This->IDirect3DRM_iface);
TRACE("(%p/%p)\n", iface, This);
return InterlockedIncrement(&This->ref);
} }
static ULONG WINAPI IDirect3DRM3Impl_Release(IDirect3DRM3* iface) static ULONG WINAPI IDirect3DRM3Impl_Release(IDirect3DRM3* iface)
{ {
IDirect3DRMImpl *This = impl_from_IDirect3DRM3(iface); IDirect3DRMImpl *This = impl_from_IDirect3DRM3(iface);
ULONG ref = InterlockedDecrement(&This->ref); return IDirect3DRM_Release(&This->IDirect3DRM_iface);
TRACE("(%p/%p)\n", iface, This);
if (!ref)
HeapFree(GetProcessHeap(), 0, This);
return ref;
} }
/*** IDirect3DRM3 methods ***/ /*** IDirect3DRM3 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