Removed NS_BASE_STREAM_EOF in favor of returning a count of 0 from Read to indicate EOF. Renamed GetLength to Available. Fixed a number of places where AppendElement's broken error code wasn't checked.

This commit is contained in:
warren@netscape.com
1999-09-09 22:05:05 +00:00
parent 9e225f88d5
commit c051b946f8
62 changed files with 157 additions and 165 deletions

View File

@@ -218,7 +218,7 @@ nsFileProtocolHandler::Suspend(nsFileChannel* request)
rv = NS_NewISupportsArray(&mSuspended);
if (NS_FAILED(rv)) return rv;
}
return mSuspended->AppendElement(NS_STATIC_CAST(nsIChannel*, request));
return mSuspended->AppendElement(NS_STATIC_CAST(nsIChannel*, request)) ? NS_OK : NS_ERROR_FAILURE; // XXX this method incorrectly returns a bool
}
nsresult