Landing harish's fix to bug24190. r=rickg, a=chofmann

This commit is contained in:
rickg%netscape.com 2000-01-19 02:38:33 +00:00
Родитель 3dfff899f2
Коммит d5bbe7ab33
2 изменённых файлов: 10 добавлений и 2 удалений

Просмотреть файл

@ -367,6 +367,7 @@ nsresult nsScanner::FillBuffer(void) {
nsresult result=NS_OK;
if(!mInputStream) {
#if 0
//This is DEBUG code!!!!!! XXX DEBUG XXX
//If you're here, it means someone tried to load a
//non-existent document. So as a favor, we emit a
@ -374,8 +375,11 @@ nsresult nsScanner::FillBuffer(void) {
if(0==mTotalRead) {
mBuffer.Append((const char*)kBadHTMLText);
mBuffer.Append(mFilename);
mTotalRead+=mBuffer.Length();
}
else result=kEOF;
else
#endif
result=kEOF;
}
else {
PRInt32 numread=0;

Просмотреть файл

@ -367,6 +367,7 @@ nsresult nsScanner::FillBuffer(void) {
nsresult result=NS_OK;
if(!mInputStream) {
#if 0
//This is DEBUG code!!!!!! XXX DEBUG XXX
//If you're here, it means someone tried to load a
//non-existent document. So as a favor, we emit a
@ -374,8 +375,11 @@ nsresult nsScanner::FillBuffer(void) {
if(0==mTotalRead) {
mBuffer.Append((const char*)kBadHTMLText);
mBuffer.Append(mFilename);
mTotalRead+=mBuffer.Length();
}
else result=kEOF;
else
#endif
result=kEOF;
}
else {
PRInt32 numread=0;