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

This commit is contained in:
Jacek Caban 2006-12-14 00:21:04 +01:00 committed by Alexandre Julliard
parent d8a761c0ab
commit 6b48198d3c
1 changed files with 2 additions and 0 deletions

View File

@ -1524,6 +1524,8 @@ static nsresult NSAPI nsURI_SetNSContainer(nsIWineURI *iface, NSContainer *aCont
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));
}