mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Read at EOF should not throw. Bug 224093-ish, r=darin, sr=dbaron
This commit is contained in:
parent
7340473c57
commit
30ffe2a0e4
@ -91,7 +91,7 @@ StringUnicharInputStream::Read(PRUnichar* aBuf,
|
||||
{
|
||||
if (mPos >= mLen) {
|
||||
*aReadCount = 0;
|
||||
return (nsresult)-1;
|
||||
return NS_OK;
|
||||
}
|
||||
const PRUnichar* us = mString->get();
|
||||
NS_ASSERTION(mLen >= mPos, "unsigned madness");
|
||||
|
Loading…
Reference in New Issue
Block a user