aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2006-01-30 14:19:02 +0000
committerJohannes Schickel2006-01-30 14:19:02 +0000
commitd4b3467ac82a57f027ec6ae07cac2d18f917dd4b (patch)
tree7ca6dd15315fa0d274675c124c863127177432d6
parent7b1e399ab3afae381f33359673e4a00272868ae2 (diff)
downloadscummvm-rg350-d4b3467ac82a57f027ec6ae07cac2d18f917dd4b.tar.gz
scummvm-rg350-d4b3467ac82a57f027ec6ae07cac2d18f917dd4b.tar.bz2
scummvm-rg350-d4b3467ac82a57f027ec6ae07cac2d18f917dd4b.zip
Fixes a bug when loading the theme config file from a directory instead of the zip file.
svn-id: r20310
-rw-r--r--common/stream.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/stream.cpp b/common/stream.cpp
index 791023edfe..d83401a614 100644
--- a/common/stream.cpp
+++ b/common/stream.cpp
@@ -104,6 +104,14 @@ char *SeekableReadStream::readLine(char *buf, size_t bufSize) {
c = readByte();
}
+
+ // This should fix a bug while using readLine with Common::File
+ // it seems that it sets the eos flag after an invalid read
+ // and at the same time the ioFailed flag
+ // the config file parser fails out of that reason for the new themes
+ if (eos()) {
+ clearIOFailed();
+ }
*p = 0;
return buf;