mshtml: Ignore EndLoad call if document is already detached.
authorJacek Caban <jacek@codeweavers.com>
Sat, 13 Mar 2010 15:42:45 +0000 (16:42 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 15 Mar 2010 13:18:05 +0000 (14:18 +0100)
dlls/mshtml/mutation.c

index 61ceca835250951e736824a4b1fb4b532f224fca..a7942043557450914e5e311d09b40217ac4da1a7 100644 (file)
@@ -338,6 +338,9 @@ static void handle_end_load(HTMLDocumentNode *This)
 
     TRACE("\n");
 
+    if(!This->basedoc.doc_obj)
+        return;
+
     if(This != This->basedoc.doc_obj->basedoc.doc_node) {
         set_ready_state(This->basedoc.window, READYSTATE_INTERACTIVE);
         return;