Rob Shearman : mshtml: Events are reset when a new document URI is loaded, so re-initialise them in start_binding.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jul 25 07:44:14 CDT 2007


Module: wine
Branch: master
Commit: addc9957afa5091d0a563c8d7ffea379bfdac7b5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=addc9957afa5091d0a563c8d7ffea379bfdac7b5

Author: Rob Shearman <rob at codeweavers.com>
Date:   Tue Jul 24 17:07:10 2007 -0500

mshtml: Events are reset when a new document URI is loaded, so re-initialise them in start_binding.

---

 dlls/mshtml/navigate.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/mshtml/navigate.c b/dlls/mshtml/navigate.c
index 3e05fdc..76fd5f2 100644
--- a/dlls/mshtml/navigate.c
+++ b/dlls/mshtml/navigate.c
@@ -815,6 +815,11 @@ HRESULT start_binding(BSCallback *bscallback)
 
     IMoniker_Release(bscallback->mon);
     bscallback->mon = NULL;
+
+    /* events are reset when a new document URI is loaded, so re-initialise them here */
+    if(bscallback->doc && bscallback->doc->nscontainer)
+        init_nsevents(bscallback->doc->nscontainer);
+
     return S_OK;
 }
 




More information about the wine-cvs mailing list