Commit 1718a6cf authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d3dx9: Don't return a pointer to the implementation in ID3DXLineImpl_QueryInterface().

parent 4522b07c
...@@ -40,15 +40,13 @@ static inline ID3DXLineImpl *impl_from_ID3DXLine(ID3DXLine *iface) ...@@ -40,15 +40,13 @@ static inline ID3DXLineImpl *impl_from_ID3DXLine(ID3DXLine *iface)
/*** IUnknown methods ***/ /*** IUnknown methods ***/
static HRESULT WINAPI ID3DXLineImpl_QueryInterface(ID3DXLine* iface, REFIID riid, LPVOID* object) static HRESULT WINAPI ID3DXLineImpl_QueryInterface(ID3DXLine* iface, REFIID riid, LPVOID* object)
{ {
ID3DXLineImpl *This = impl_from_ID3DXLine(iface); TRACE("(%p)->(%s, %p)\n", iface, debugstr_guid(riid), object);
TRACE("(%p)->(%s, %p)\n", This, debugstr_guid(riid), object);
if (IsEqualGUID(riid, &IID_IUnknown) || if (IsEqualGUID(riid, &IID_IUnknown) ||
IsEqualGUID(riid, &IID_ID3DXLine)) IsEqualGUID(riid, &IID_ID3DXLine))
{ {
ID3DXLine_AddRef(iface); ID3DXLine_AddRef(iface);
*object = This; *object = iface;
return S_OK; return S_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