mshtml: Don't use wine_url in nsURI::Clone implementation.

This commit is contained in:
Jacek Caban 2010-11-25 13:55:33 +01:00 committed by Alexandre Julliard
parent 0a28308b90
commit 74aabe94b1
1 changed files with 6 additions and 6 deletions

View File

@ -2058,6 +2058,9 @@ static nsresult NSAPI nsURI_Clone(nsIURL *iface, nsIURI **_retval)
TRACE("(%p)->(%p)\n", This, _retval);
if(!ensure_uri(This))
return NS_ERROR_UNEXPECTED;
if(This->nsuri) {
nsres = nsIURI_Clone(This->nsuri, &nsuri);
if(NS_FAILED(nsres)) {
@ -2072,12 +2075,9 @@ static nsresult NSAPI nsURI_Clone(nsIURL *iface, nsIURI **_retval)
return nsres;
}
set_wine_url(wine_uri, This->wine_url);
if(This->uri) {
IUri_AddRef(This->uri);
wine_uri->uri = This->uri;
}
wine_uri->uri = This->uri;
IUri_AddRef(wine_uri->uri);
sync_wine_url(wine_uri);
*_retval = NSURI(wine_uri);
return NS_OK;