mshtml: Use do_query_service in QueryService implementation.

This commit is contained in:
Jacek Caban 2012-01-05 18:30:46 +01:00 committed by Alexandre Julliard
parent 986800701b
commit d0f6e349b0
1 changed files with 3 additions and 10 deletions

View File

@ -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));