mfplat: Print warning instead of fixme for unsupported interfaces in attributes object.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6325d85406
commit
71bf156e1b
|
@ -651,26 +651,21 @@ static inline mfattributes *impl_from_IMFAttributes(IMFAttributes *iface)
|
||||||
|
|
||||||
static HRESULT WINAPI mfattributes_QueryInterface(IMFAttributes *iface, REFIID riid, void **out)
|
static HRESULT WINAPI mfattributes_QueryInterface(IMFAttributes *iface, REFIID riid, void **out)
|
||||||
{
|
{
|
||||||
mfattributes *This = impl_from_IMFAttributes(iface);
|
TRACE("%p, %s, %p.\n", iface, debugstr_guid(riid), out);
|
||||||
|
|
||||||
TRACE("(%p)->(%s %p)\n", This, debugstr_guid(riid), out);
|
if (IsEqualIID(riid, &IID_IMFAttributes) ||
|
||||||
|
IsEqualGUID(riid, &IID_IUnknown))
|
||||||
if(IsEqualGUID(riid, &IID_IUnknown) ||
|
|
||||||
IsEqualGUID(riid, &IID_IMFAttributes))
|
|
||||||
{
|
{
|
||||||
*out = &This->IMFAttributes_iface;
|
*out = iface;
|
||||||
|
IMFAttributes_AddRef(iface);
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
WARN("Unsupported %s.\n", debugstr_guid(riid));
|
||||||
FIXME("(%s, %p)\n", debugstr_guid(riid), out);
|
|
||||||
*out = NULL;
|
*out = NULL;
|
||||||
return E_NOINTERFACE;
|
return E_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
IUnknown_AddRef((IUnknown*)*out);
|
|
||||||
return S_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
static ULONG WINAPI mfattributes_AddRef(IMFAttributes *iface)
|
static ULONG WINAPI mfattributes_AddRef(IMFAttributes *iface)
|
||||||
{
|
{
|
||||||
mfattributes *This = impl_from_IMFAttributes(iface);
|
mfattributes *This = impl_from_IMFAttributes(iface);
|
||||||
|
|
Loading…
Reference in New Issue