Commit 52bade97 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

shdocvw: Check GetContainer result before setting new container.

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