зеркало из https://github.com/mozilla/pjs.git
readLine was returning (in its truncation parameter) the exact opposite of the promised boolean. Thanks to kin@netscape.com for pointing this out.
This commit is contained in:
Родитель
cd1f3ac8de
Коммит
fe6b4941d5
|
@ -525,7 +525,7 @@ NS_IMETHODIMP nsFileSpecImpl::readLine(char** line, PRInt32 bufferSize, PRBool *
|
||||||
if (!mInputStream)
|
if (!mInputStream)
|
||||||
return NS_ERROR_NULL_POINTER;
|
return NS_ERROR_NULL_POINTER;
|
||||||
nsInputFileStream s(mInputStream);
|
nsInputFileStream s(mInputStream);
|
||||||
*wasTruncated = s.readline(*line, bufferSize);
|
*wasTruncated = !s.readline(*line, bufferSize);
|
||||||
return s.error();
|
return s.error();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче