windowscodecs: Implement MetadataHandler_GetMetadataHandlerInfo.

This commit is contained in:
Dmitry Timoshkov 2012-06-20 14:00:08 +09:00 committed by Alexandre Julliard
parent 8802a9a84c
commit 27743c81a9
2 changed files with 17 additions and 2 deletions

View file

@ -1618,7 +1618,10 @@ HRESULT CreateComponentInfo(REFCLSID clsid, IWICComponentInfo **ppIInfo)
hr = HRESULT_FROM_WIN32(res);
}
else
{
FIXME("%s is not supported\n", wine_dbgstr_guid(clsid));
hr = E_FAIL;
}
RegCloseKey(clsidkey);

View file

@ -145,8 +145,20 @@ static HRESULT WINAPI MetadataHandler_GetMetadataFormat(IWICMetadataWriter *ifac
static HRESULT WINAPI MetadataHandler_GetMetadataHandlerInfo(IWICMetadataWriter *iface,
IWICMetadataHandlerInfo **ppIHandler)
{
FIXME("(%p,%p): stub\n", iface, ppIHandler);
return E_NOTIMPL;
HRESULT hr;
IWICComponentInfo *component_info;
MetadataHandler *This = impl_from_IWICMetadataWriter(iface);
TRACE("%p,%p\n", iface, ppIHandler);
hr = CreateComponentInfo(This->vtable->clsid, &component_info);
if (FAILED(hr)) return hr;
hr = IWICComponentInfo_QueryInterface(component_info, &IID_IWICMetadataHandlerInfo,
(void **)ppIHandler);
IWICComponentInfo_Release(component_info);
return hr;
}
static HRESULT WINAPI MetadataHandler_GetCount(IWICMetadataWriter *iface,