mshtml: Use do_query_service in QueryService implementation.
This commit is contained in:
parent
986800701b
commit
d0f6e349b0
|
@ -252,19 +252,12 @@ static HRESULT WINAPI ServiceProvider_QueryService(IServiceProvider *iface, REFG
|
||||||
TRACE("(%p)->(%s %s %p)\n", This, debugstr_guid(guidService), debugstr_guid(riid), ppv);
|
TRACE("(%p)->(%s %s %p)\n", This, debugstr_guid(guidService), debugstr_guid(riid), ppv);
|
||||||
|
|
||||||
if(This->doc_obj->client) {
|
if(This->doc_obj->client) {
|
||||||
IServiceProvider *sp;
|
|
||||||
HRESULT hres;
|
HRESULT hres;
|
||||||
|
|
||||||
hres = IOleClientSite_QueryInterface(This->doc_obj->client,
|
hres = do_query_service((IUnknown*)This->doc_obj->client, guidService, riid, ppv);
|
||||||
&IID_IServiceProvider, (void**)&sp);
|
|
||||||
if(SUCCEEDED(hres)) {
|
|
||||||
hres = IServiceProvider_QueryService(sp, guidService, riid, ppv);
|
|
||||||
IServiceProvider_Release(sp);
|
|
||||||
|
|
||||||
if(SUCCEEDED(hres))
|
if(SUCCEEDED(hres))
|
||||||
return hres;
|
return hres;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
FIXME("unknown service %s\n", debugstr_guid(guidService));
|
FIXME("unknown service %s\n", debugstr_guid(guidService));
|
||||||
return E_NOINTERFACE;
|
return E_NOINTERFACE;
|
||||||
|
|
Loading…
Reference in New Issue