shdocvw: Check GetContainer result before setting new container.

This commit is contained in:
Jacek Caban 2009-08-07 19:02:31 +02:00 committed by Alexandre Julliard
parent e9aaea044b
commit 52bade97f4
1 changed files with 9 additions and 1 deletions

View File

@ -152,8 +152,16 @@ static HRESULT activate_inplace(WebBrowser *This, IOleClientSite *active_site)
SWP_NOZORDER | SWP_SHOWWINDOW);
if(This->client) {
IOleContainer *container;
IOleClientSite_ShowObject(This->client);
IOleClientSite_GetContainer(This->client, &This->container);
hres = IOleClientSite_GetContainer(This->client, &container);
if(SUCCEEDED(hres)) {
if(This->container)
IOleContainer_Release(This->container);
This->container = container;
}
}
if(This->doc_host.frame)