Commit d0f6e349 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Use do_query_service in QueryService implementation.

parent 98680070
......@@ -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));
......
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