windowscodecs: Implement MetadataHandler_GetMetadataHandlerInfo.
This commit is contained in:
parent
8802a9a84c
commit
27743c81a9
|
@ -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);
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue