Commit cdc2c531 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent 86b14209
......@@ -2778,15 +2778,13 @@ static inline struct ID3DXEffectImpl *impl_from_ID3DXEffect(ID3DXEffect *iface)
/*** IUnknown methods ***/
static HRESULT WINAPI ID3DXEffectImpl_QueryInterface(ID3DXEffect *iface, REFIID riid, void **object)
{
struct ID3DXEffectImpl *This = impl_from_ID3DXEffect(iface);
TRACE("(%p)->(%s, %p)\n", This, debugstr_guid(riid), object);
TRACE("(%p)->(%s, %p)\n", iface, debugstr_guid(riid), object);
if (IsEqualGUID(riid, &IID_IUnknown) ||
IsEqualGUID(riid, &IID_ID3DXEffect))
{
This->ID3DXEffect_iface.lpVtbl->AddRef(iface);
*object = This;
iface->lpVtbl->AddRef(iface);
*object = iface;
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