Commit cd16932b authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d3drm: Compare with the correct IID in IDirect3DRMVisualArrayImpl_QueryInterface().

parent 079b6d4c
......@@ -215,24 +215,21 @@ static HRESULT Direct3DRMFrameArray_create(IDirect3DRMFrameArray** obj)
return S_OK;
}
/*** IUnknown methods ***/
static HRESULT WINAPI IDirect3DRMVisualArrayImpl_QueryInterface(IDirect3DRMVisualArray* iface,
REFIID riid, void** ret_iface)
static HRESULT WINAPI IDirect3DRMVisualArrayImpl_QueryInterface(IDirect3DRMVisualArray *iface, REFIID riid, void **out)
{
TRACE("(%p)->(%s, %p)\n", iface, debugstr_guid(riid), ret_iface);
TRACE("iface %p, riid %s, out %p.\n", iface, debugstr_guid(riid), out);
if (IsEqualGUID(riid, &IID_IUnknown) ||
IsEqualGUID(riid, &IID_IDirect3DRMFrameArray))
if (IsEqualGUID(riid, &IID_IDirect3DRMVisualArray)
|| IsEqualGUID(riid, &IID_IUnknown))
{
*ret_iface = iface;
IDirect3DRMVisualArray_AddRef(iface);
*out = iface;
return S_OK;
}
*ret_iface = NULL;
WARN("Interface %s not implemented\n", debugstr_guid(riid));
WARN("%s not implemented, returning E_NOINTERFACE.\n", debugstr_guid(riid));
*out = NULL;
return E_NOINTERFACE;
}
......
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