From: Alex Henrie alexhenrie24@gmail.com
--- dlls/mshtml/view.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/mshtml/view.c b/dlls/mshtml/view.c index 3f31e609e39..cc66c1ff33a 100644 --- a/dlls/mshtml/view.c +++ b/dlls/mshtml/view.c @@ -724,8 +724,7 @@ static HRESULT WINAPI OleDocumentView_UIActivate(IOleDocumentView *iface, BOOL f call_set_active_object((IOleInPlaceUIWindow*)This->frame, NULL); if(This->hostui) IDocHostUIHandler_HideUI(This->hostui); - if(This->ipsite) - IOleInPlaceSite_OnUIDeactivate(This->ipsite, FALSE); + IOleInPlaceSite_OnUIDeactivate(This->ipsite, FALSE); } } return S_OK;
Why is it redundant?
On Thu May 25 15:23:45 2023 +0000, Jacek Caban wrote:
Why is it redundant?
The first thing that OleDocumentView_UIActivate does is ensure that This->ipsite is not NULL.
On Thu May 25 15:23:45 2023 +0000, Alex Henrie wrote:
The first thing that OleDocumentView_UIActivate does is ensure that This->ipsite is not NULL.
Yes, but calls like `HideUI()` may change that.
On Thu May 25 15:33:05 2023 +0000, Jacek Caban wrote:
Yes, but calls like `HideUI()` may change that.
OK, I've marked it as a false positive in Coverity. Thanks.
This merge request was closed by Alex Henrie.