Commit 86b14209 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent fae3a643
...@@ -3757,15 +3757,13 @@ static inline struct ID3DXEffectCompilerImpl *impl_from_ID3DXEffectCompiler(ID3D ...@@ -3757,15 +3757,13 @@ static inline struct ID3DXEffectCompilerImpl *impl_from_ID3DXEffectCompiler(ID3D
/*** IUnknown methods ***/ /*** IUnknown methods ***/
static HRESULT WINAPI ID3DXEffectCompilerImpl_QueryInterface(ID3DXEffectCompiler *iface, REFIID riid, void **object) static HRESULT WINAPI ID3DXEffectCompilerImpl_QueryInterface(ID3DXEffectCompiler *iface, REFIID riid, void **object)
{ {
struct ID3DXEffectCompilerImpl *This = impl_from_ID3DXEffectCompiler(iface); TRACE("iface %p, riid %s, object %p.\n", iface, debugstr_guid(riid), object);
TRACE("iface %p, riid %s, object %p\n", This, debugstr_guid(riid), object);
if (IsEqualGUID(riid, &IID_IUnknown) || if (IsEqualGUID(riid, &IID_IUnknown) ||
IsEqualGUID(riid, &IID_ID3DXEffectCompiler)) IsEqualGUID(riid, &IID_ID3DXEffectCompiler))
{ {
This->ID3DXEffectCompiler_iface.lpVtbl->AddRef(iface); iface->lpVtbl->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