Fixes a bug when loading the theme config file from a directory instead of the zip file.

svn-id: r20310
This commit is contained in:
Johannes Schickel 2006-01-30 14:19:02 +00:00
parent 7b1e399ab3
commit d4b3467ac8

View File

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