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