d3drm: Thunk IDirect3DRMTexture2::AddRef to version 3.

This commit is contained in:
Aaryaman Vasishta 2015-08-24 19:28:33 +05:30 committed by Alexandre Julliard
parent f1c3f7ff1c
commit 0c06bb7a81
1 changed files with 2 additions and 3 deletions

View File

@ -77,11 +77,10 @@ static HRESULT WINAPI d3drm_texture2_QueryInterface(IDirect3DRMTexture2 *iface,
static ULONG WINAPI d3drm_texture2_AddRef(IDirect3DRMTexture2 *iface) static ULONG WINAPI d3drm_texture2_AddRef(IDirect3DRMTexture2 *iface)
{ {
struct d3drm_texture *texture = impl_from_IDirect3DRMTexture2(iface); struct d3drm_texture *texture = impl_from_IDirect3DRMTexture2(iface);
ULONG refcount = InterlockedIncrement(&texture->ref);
TRACE("%p increasing refcount to %u.\n", iface, refcount); TRACE("iface %p.\n", iface);
return refcount; return IDirect3DRMTexture3_AddRef(&texture->IDirect3DRMTexture3_iface);
} }
static ULONG WINAPI d3drm_texture2_Release(IDirect3DRMTexture2 *iface) static ULONG WINAPI d3drm_texture2_Release(IDirect3DRMTexture2 *iface)