mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
d3drm: Forward all IUnknown methods from IDirect3DRMDevice3.
This commit is contained in:
parent
e1c00d32ed
commit
d05f3e06c8
1 changed files with 2 additions and 12 deletions
|
@ -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 ***/
|
||||
|
|
Loading…
Reference in a new issue