Changed last IDirect3D9->QueryInterface() according to hpoussin's feedback

svn path=/trunk/; revision=31333
This commit is contained in:
Gregor Brunmar 2007-12-19 20:06:34 +00:00
parent 162365cf34
commit 23b9c2f3d3

View file

@ -14,13 +14,16 @@ static ULONG WINAPI IDirect3D9Impl_AddRef(LPDIRECT3D9 iface);
/* IDirect3D9: IUnknown implementation */
static HRESULT WINAPI IDirect3D9Impl_QueryInterface(LPDIRECT3D9 iface, REFIID riid, LPVOID* ppvObject)
{
LPDIRECTD3D9_INT This = (LPDIRECTD3D9_INT)iface;
if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IDirect3D9))
{
IDirect3D9Impl_AddRef(iface);
*ppvObject = iface;
*ppvObject = &This->lpVtbl;
return S_OK;
}
*ppvObject = NULL;
return E_NOINTERFACE;
}