mshtml: Don't crash in UIActivate if Gecko is not available.

This commit is contained in:
Jacek Caban 2007-09-23 22:38:48 +02:00 committed by Alexandre Julliard
parent 75eb61cdc6
commit 23465f2183
1 changed files with 2 additions and 1 deletions

View File

@ -577,7 +577,8 @@ static HRESULT WINAPI OleDocumentView_UIActivate(IOleDocumentView *iface, BOOL f
}
This->focus = TRUE;
nsIWebBrowserFocus_Activate(This->nscontainer->focus);
if(This->nscontainer)
nsIWebBrowserFocus_Activate(This->nscontainer->focus);
notif_focus(This);
update_doc(This, UPDATE_UI);