Commit 8f3c3ca3 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added IUri-based nsIURI::SetPort implementation.

parent 25a40601
......@@ -1925,9 +1925,6 @@ static nsresult NSAPI nsURI_GetPort(nsIURL *iface, PRInt32 *aPort)
TRACE("(%p)->(%p)\n", This, aPort);
if(This->nsuri)
return nsIURI_GetPort(This->nsuri, aPort);
if(!ensure_uri(This))
return NS_ERROR_UNEXPECTED;
......@@ -1944,16 +1941,15 @@ static nsresult NSAPI nsURI_GetPort(nsIURL *iface, PRInt32 *aPort)
static nsresult NSAPI nsURI_SetPort(nsIURL *iface, PRInt32 aPort)
{
nsWineURI *This = impl_from_nsIURL(iface);
HRESULT hres;
TRACE("(%p)->(%d)\n", This, aPort);
if(This->nsuri) {
invalidate_uri(This);
return nsIURI_SetPort(This->nsuri, aPort);
}
if(!ensure_uri_builder(This))
return NS_ERROR_UNEXPECTED;
FIXME("default action not implemented\n");
return NS_ERROR_NOT_IMPLEMENTED;
hres = IUriBuilder_SetPort(This->uri_builder, aPort != -1, aPort);
return SUCCEEDED(hres) ? NS_OK : NS_ERROR_FAILURE;
}
static nsresult NSAPI nsURI_GetPath(nsIURL *iface, nsACString *aPath)
......
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