Jacek Caban : mshtml: Don't crash in UIActivate if Gecko is not available.
Alexandre Julliard
julliard at winehq.org
Mon Sep 24 08:07:57 CDT 2007
Module: wine
Branch: master
Commit: 23465f21830bf7e75305656d8edc4c8c37545237
URL: http://source.winehq.org/git/wine.git/?a=commit;h=23465f21830bf7e75305656d8edc4c8c37545237
Author: Jacek Caban <jacek at codeweavers.com>
Date: Sun Sep 23 22:38:48 2007 +0200
mshtml: Don't crash in UIActivate if Gecko is not available.
---
dlls/mshtml/view.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/mshtml/view.c b/dlls/mshtml/view.c
index a201de0..e5ef7a7 100644
--- a/dlls/mshtml/view.c
+++ b/dlls/mshtml/view.c
@@ -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);
More information about the wine-cvs
mailing list