Commit 2b1da8c7 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent bdcc868e
......@@ -1116,15 +1116,13 @@ static inline struct ID3DXBaseEffectImpl *impl_from_ID3DXBaseEffect(ID3DXBaseEff
/*** IUnknown methods ***/
static HRESULT WINAPI ID3DXBaseEffectImpl_QueryInterface(ID3DXBaseEffect *iface, REFIID riid, void **object)
{
struct ID3DXBaseEffectImpl *This = impl_from_ID3DXBaseEffect(iface);
TRACE("iface %p, riid %s, object %p\n", This, debugstr_guid(riid), object);
TRACE("iface %p, riid %s, object %p.\n", iface, debugstr_guid(riid), object);
if (IsEqualGUID(riid, &IID_IUnknown) ||
IsEqualGUID(riid, &IID_ID3DXBaseEffect))
{
This->ID3DXBaseEffect_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