d3dx9: Don't return a pointer to the implementation in ID3DXEffectImpl_QueryInterface().
This commit is contained in:
parent
86b14209a0
commit
cdc2c53158
|
@ -2778,15 +2778,13 @@ static inline struct ID3DXEffectImpl *impl_from_ID3DXEffect(ID3DXEffect *iface)
|
||||||
/*** IUnknown methods ***/
|
/*** IUnknown methods ***/
|
||||||
static HRESULT WINAPI ID3DXEffectImpl_QueryInterface(ID3DXEffect *iface, REFIID riid, void **object)
|
static HRESULT WINAPI ID3DXEffectImpl_QueryInterface(ID3DXEffect *iface, REFIID riid, void **object)
|
||||||
{
|
{
|
||||||
struct ID3DXEffectImpl *This = impl_from_ID3DXEffect(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_ID3DXEffect))
|
IsEqualGUID(riid, &IID_ID3DXEffect))
|
||||||
{
|
{
|
||||||
This->ID3DXEffect_iface.lpVtbl->AddRef(iface);
|
iface->lpVtbl->AddRef(iface);
|
||||||
*object = This;
|
*object = iface;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue