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.

git-svn-id: svn://10.0.0.236/trunk@46637 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
warren%netscape.com
1999-09-09 22:05:05 +00:00
parent bf00f6cff0
commit de60d2685c
75 changed files with 181 additions and 187 deletions

View File

@@ -117,7 +117,7 @@ StreamToFile::OnDataAvailable(nsIURI* aURL, nsIInputStream *pIStream,
do {
char buffer[4000];
nsresult err = pIStream->Read(buffer, 0, sizeof(buffer), &len);
if (err == NS_OK) {
if (NS_SUCCEEDED(err)) {
if (nsnull != mFile) {
fwrite(buffer, 1, len, mFile);
}