Commit cb85bad7 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added nsIURI::GetPort implementation.

parent 3a00f739
......@@ -1892,14 +1892,25 @@ static nsresult NSAPI nsURI_SetHost(nsIURL *iface, const nsACString *aHost)
static nsresult NSAPI nsURI_GetPort(nsIURL *iface, PRInt32 *aPort)
{
nsWineURI *This = NSURI_THIS(iface);
DWORD port;
HRESULT hres;
TRACE("(%p)->(%p)\n", This, aPort);
if(This->nsuri)
return nsIURI_GetPort(This->nsuri, aPort);
FIXME("default action not implemented\n");
return NS_ERROR_NOT_IMPLEMENTED;
if(!ensure_uri(This))
return NS_ERROR_UNEXPECTED;
hres = IUri_GetPort(This->uri, &port);
if(FAILED(hres)) {
WARN("GetPort failed: %08x\n", hres);
return NS_ERROR_UNEXPECTED;
}
*aPort = port ? port : -1;
return NS_OK;
}
static nsresult NSAPI nsURI_SetPort(nsIURL *iface, PRInt32 aPort)
......
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