mshtml: Ignore load event on detached documents.

This commit is contained in:
Jacek Caban 2010-03-13 16:45:15 +01:00 committed by Alexandre Julliard
parent d69297c4b7
commit 9389184d1f
1 changed files with 1 additions and 1 deletions

View File

@ -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;