Module: wine Branch: master Commit: 5562339681de3437898d301bdf484720fbb4c4ff URL: http://source.winehq.org/git/wine.git/?a=commit;h=5562339681de3437898d301bdf... Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Wed Sep 7 13:17:19 2016 +0200 d3d9: Avoid a cast from a COM object to an interface. Signed-off-by: Michael Stefaniuc <mstefani(a)redhat.de> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/d3d9/directx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/d3d9/directx.c b/dlls/d3d9/directx.c index 8f5f143..5772c11 100644 --- a/dlls/d3d9/directx.c +++ b/dlls/d3d9/directx.c @@ -498,7 +498,7 @@ static HRESULT WINAPI DECLSPEC_HOTPATCH d3d9_CreateDevice(IDirect3D9Ex *iface, U } TRACE("Created device %p.\n", object); - *device = (IDirect3DDevice9 *)object; + *device = (IDirect3DDevice9 *)&object->IDirect3DDevice9Ex_iface; return D3D_OK; }