Commit 74aabe94 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

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

parent 0a28308b
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment