mirror of
https://github.com/reactos/wine.git
synced 2025-01-22 20:04:59 +00:00
shdocvw: Don't do verb that is already done.
This commit is contained in:
parent
dda3bea568
commit
4ee19c81bb
@ -103,14 +103,12 @@ static HRESULT activate_inplace(WebBrowser *This, IOleClientSite *active_site, H
|
||||
{
|
||||
HRESULT hres;
|
||||
|
||||
if(This->inplace)
|
||||
return S_OK;
|
||||
|
||||
if(!active_site)
|
||||
return E_INVALIDARG;
|
||||
|
||||
if(This->inplace) {
|
||||
IOleInPlaceSite_Release(This->inplace);
|
||||
This->inplace = NULL;
|
||||
}
|
||||
|
||||
hres = IOleClientSite_QueryInterface(active_site, &IID_IOleInPlaceSite,
|
||||
(void**)&This->inplace);
|
||||
if(FAILED(hres)) {
|
||||
@ -158,6 +156,9 @@ static HRESULT activate_ui(WebBrowser *This, IOleClientSite *active_site, HWND p
|
||||
|
||||
static const WCHAR wszitem[] = {'i','t','e','m',0};
|
||||
|
||||
if(This->inplace)
|
||||
return S_OK;
|
||||
|
||||
hres = activate_inplace(This, active_site, parent_hwnd);
|
||||
if(FAILED(hres))
|
||||
return hres;
|
||||
|
Loading…
x
Reference in New Issue
Block a user