Bug 283487 nsStringInputStream is still broken
use LengthRemaining consistently r=darin git-svn-id: svn://10.0.0.236/trunk@216583 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -264,7 +264,7 @@ nsStringInputStream::ReadSegments(nsWriteSegmentFun writer, void *closure,
|
||||
NS_ASSERTION(mLength >= mOffset, "bad stream state");
|
||||
|
||||
// We may be at end-of-file
|
||||
PRUint32 maxCount = mLength - mOffset;
|
||||
PRUint32 maxCount = LengthRemaining();
|
||||
if (maxCount == 0) {
|
||||
*result = 0;
|
||||
return NS_OK;
|
||||
|
||||
Reference in New Issue
Block a user