Read at EOF should not throw. Bug 224093-ish, r=darin, sr=dbaron

This commit is contained in:
bzbarsky%mit.edu 2003-11-18 15:06:03 +00:00
parent 7340473c57
commit 30ffe2a0e4

View File

@ -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");