Commit 4ee19c81 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

shdocvw: Don't do verb that is already done.

parent dda3bea5
...@@ -103,14 +103,12 @@ static HRESULT activate_inplace(WebBrowser *This, IOleClientSite *active_site, H ...@@ -103,14 +103,12 @@ static HRESULT activate_inplace(WebBrowser *This, IOleClientSite *active_site, H
{ {
HRESULT hres; HRESULT hres;
if(This->inplace)
return S_OK;
if(!active_site) if(!active_site)
return E_INVALIDARG; return E_INVALIDARG;
if(This->inplace) {
IOleInPlaceSite_Release(This->inplace);
This->inplace = NULL;
}
hres = IOleClientSite_QueryInterface(active_site, &IID_IOleInPlaceSite, hres = IOleClientSite_QueryInterface(active_site, &IID_IOleInPlaceSite,
(void**)&This->inplace); (void**)&This->inplace);
if(FAILED(hres)) { if(FAILED(hres)) {
...@@ -158,6 +156,9 @@ static HRESULT activate_ui(WebBrowser *This, IOleClientSite *active_site, HWND p ...@@ -158,6 +156,9 @@ static HRESULT activate_ui(WebBrowser *This, IOleClientSite *active_site, HWND p
static const WCHAR wszitem[] = {'i','t','e','m',0}; static const WCHAR wszitem[] = {'i','t','e','m',0};
if(This->inplace)
return S_OK;
hres = activate_inplace(This, active_site, parent_hwnd); hres = activate_inplace(This, active_site, parent_hwnd);
if(FAILED(hres)) if(FAILED(hres))
return hres; return hres;
......
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