Commit 4632045f authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Replace get_htmldoc_classinfo with more generic helper.

parent 91c568bc
......@@ -188,7 +188,7 @@ void release_typelib(void)
DeleteCriticalSection(&cs_dispex_static_data);
}
HRESULT get_htmldoc_classinfo(ITypeInfo **typeinfo)
HRESULT get_class_typeinfo(const CLSID *clsid, ITypeInfo **typeinfo)
{
HRESULT hres;
......@@ -197,7 +197,7 @@ HRESULT get_htmldoc_classinfo(ITypeInfo **typeinfo)
if (!typelib)
return hres;
hres = ITypeLib_GetTypeInfoOfGuid(typelib, &CLSID_HTMLDocument, typeinfo);
hres = ITypeLib_GetTypeInfoOfGuid(typelib, clsid, typeinfo);
if(FAILED(hres))
ERR("GetTypeInfoOfGuid failed: %08x\n", hres);
return hres;
......
......@@ -4473,7 +4473,7 @@ static HRESULT WINAPI ProvideClassInfo_GetClassInfo(IProvideClassInfo* iface,
{
HTMLDocument *This = impl_from_IProvideClassInfo(iface);
TRACE("(%p)->(%p)\n", This, ppTI);
return get_htmldoc_classinfo(ppTI);
return get_class_typeinfo(&CLSID_HTMLDocument, ppTI);
}
static const IProvideClassInfoVtbl ProvideClassInfoVtbl = {
......
......@@ -316,7 +316,7 @@ HRESULT dispex_get_dynid(DispatchEx*,const WCHAR*,DISPID*) DECLSPEC_HIDDEN;
void dispex_traverse(DispatchEx*,nsCycleCollectionTraversalCallback*) DECLSPEC_HIDDEN;
void dispex_unlink(DispatchEx*) DECLSPEC_HIDDEN;
void release_typelib(void) DECLSPEC_HIDDEN;
HRESULT get_htmldoc_classinfo(ITypeInfo **typeinfo) DECLSPEC_HIDDEN;
HRESULT get_class_typeinfo(const CLSID*,ITypeInfo**) DECLSPEC_HIDDEN;
const dispex_static_data_vtbl_t *dispex_get_vtbl(DispatchEx*) DECLSPEC_HIDDEN;
void dispex_info_add_interface(dispex_data_t*,tid_t) DECLSPEC_HIDDEN;
......
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