From 26f6a30f583cfae083a0856e18ee466093a7d67f Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Sat, 8 Apr 2006 20:51:37 +0200 Subject: [PATCH] shdocvw: Set active document of both frame and doc window. --- dlls/shdocvw/oleobject.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/shdocvw/oleobject.c b/dlls/shdocvw/oleobject.c index fa3e9dc7962..32d7452e950 100644 --- a/dlls/shdocvw/oleobject.c +++ b/dlls/shdocvw/oleobject.c @@ -298,7 +298,10 @@ static HRESULT WINAPI OleObject_DoVerb(IOleObject *iface, LONG iVerb, struct tag IOleInPlaceSite_OnUIActivate(inplace); IOleInPlaceSite_Release(inplace); - IOleInPlaceFrame_SetActiveObject(This->frame, ACTIVEOBJ(This), wszitem); + if(This->frame) + IOleInPlaceFrame_SetActiveObject(This->frame, ACTIVEOBJ(This), wszitem); + if(This->uiwindow) + IOleInPlaceUIWindow_SetActiveObject(This->uiwindow, ACTIVEOBJ(This), wszitem); /* TODO: * IOleInPlaceFrmae_SetMenu