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:
parent
9b264ab3c5
commit
5562339681
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue