d3d9: Avoid a cast from a COM object to an interface.

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-09-07 13:17:19 +02:00 committed by Alexandre Julliard
parent 9b264ab3c5
commit 5562339681
1 changed files with 1 additions and 1 deletions

View File

@ -498,7 +498,7 @@ static HRESULT WINAPI DECLSPEC_HOTPATCH d3d9_CreateDevice(IDirect3D9Ex *iface, U
} }
TRACE("Created device %p.\n", object); TRACE("Created device %p.\n", object);
*device = (IDirect3DDevice9 *)object; *device = (IDirect3DDevice9 *)&object->IDirect3DDevice9Ex_iface;
return D3D_OK; return D3D_OK;
} }