Big patch changing semantics of ReadStream::eos():

eos() now only returns true _after_ trying to read past the end of the stream.

This has a large potential for regressions. Please test!

svn-id: r34549
This commit is contained in:
Willem Jan Palenstijn 2008-09-14 22:28:53 +00:00
parent fbfe30bf86
commit c8eeae8d4d
34 changed files with 294 additions and 152 deletions

View file

@ -423,6 +423,7 @@ void Sprite::decodeRLEBuffer(const byte *inputBuffer, size_t inLength, size_t ou
}
for (c = 0; c < fg_runcount && !readS.eos(); c++) {
// FIXME: eos changed; error handling?
*outPointer = readS.readByte();
if (outPointer < outPointerEnd)
outPointer++;