Commit 55623396 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent 9b264ab3
...@@ -498,7 +498,7 @@ static HRESULT WINAPI DECLSPEC_HOTPATCH d3d9_CreateDevice(IDirect3D9Ex *iface, U ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment