Jacek Caban : mshtml: Don' t do anything in SetNSContainer if new container is the same as previous.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Dec 14 07:03:44 CST 2006


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Dec 14 00:21:04 2006 +0100

mshtml: Don't do anything in SetNSContainer if new container is the same as previous.

---

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

diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c
index 122b599..256a436 100644
--- a/dlls/mshtml/nsio.c
+++ b/dlls/mshtml/nsio.c
@@ -1524,6 +1524,8 @@ static nsresult NSAPI nsURI_SetNSContain
     TRACE("(%p)->(%p)\n", This, aContainer);
 
     if(This->container) {
+        if(This->container == aContainer)
+            return NS_OK;
         WARN("Container already set: %p\n", This->container);
         nsIWebBrowserChrome_Release(NSWBCHROME(This->container));
     }




More information about the wine-cvs mailing list