Jacek Caban : mshtml: Ignore load event on detached documents.
Alexandre Julliard
julliard at winehq.org
Mon Mar 15 12:19:35 CDT 2010
Module: wine
Branch: master
Commit: 9389184d1f0bc01bfa57cd229dee2f93b2691b83
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9389184d1f0bc01bfa57cd229dee2f93b2691b83
Author: Jacek Caban <jacek at codeweavers.com>
Date: Sat Mar 13 16:45:15 2010 +0100
mshtml: Ignore load event on detached documents.
---
dlls/mshtml/nsevents.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/mshtml/nsevents.c b/dlls/mshtml/nsevents.c
index 65bcae0..0f5b864 100644
--- a/dlls/mshtml/nsevents.c
+++ b/dlls/mshtml/nsevents.c
@@ -216,7 +216,7 @@ static nsresult NSAPI handle_load(nsIDOMEventListener *iface, nsIDOMEvent *event
TRACE("(%p)\n", doc);
- if(!doc)
+ if(!doc || !doc->basedoc.window)
return NS_ERROR_FAILURE;
doc_obj = doc->basedoc.doc_obj;
More information about the wine-cvs
mailing list