зеркало из https://github.com/mozilla/gecko-dev.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:
Родитель
d83052b6c3
Коммит
0a212c8078
|
@ -525,7 +525,7 @@ NS_IMETHODIMP nsFileSpecImpl::readLine(char** line, PRInt32 bufferSize, PRBool *
|
|||
if (!mInputStream)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
nsInputFileStream s(mInputStream);
|
||||
*wasTruncated = s.readline(*line, bufferSize);
|
||||
*wasTruncated = !s.readline(*line, bufferSize);
|
||||
return s.error();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче