mirror of
https://github.com/reactos/reactos.git
synced 2025-01-06 06:20:13 +00:00
Changed last IDirect3D9->QueryInterface() according to hpoussin's feedback
svn path=/trunk/; revision=31333
This commit is contained in:
parent
162365cf34
commit
23b9c2f3d3
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue