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:
parent
fbfe30bf86
commit
c8eeae8d4d
34 changed files with 294 additions and 152 deletions
|
@ -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++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue