Fixed GetPort

This commit is contained in:
warren%netscape.com 1999-06-17 03:38:23 +00:00
parent 75e68a0c2e
commit 165315ccac
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ nsFileChannel::Init(nsFileProtocolHandler* handler,
if (getter) {
rv = getter->GetEventSink(verb, nsIStreamListener::GetIID(), (nsISupports**)&mListener);
if (NS_FAILED(rv)) return rv;
// ignore the failure -- we can live without having an event sink
}
mURI = uri;

View File

@ -92,7 +92,7 @@ nsFileProtocolHandler::GetScheme(char* *result)
NS_IMETHODIMP
nsFileProtocolHandler::GetDefaultPort(PRInt32 *result)
{
*result = 21;
*result = -1; // no port for file: URLs
return NS_OK;
}