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