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:
parent
7b1e399ab3
commit
d4b3467ac8
1 changed files with 8 additions and 0 deletions
|
@ -104,6 +104,14 @@ char *SeekableReadStream::readLine(char *buf, size_t bufSize) {
|
||||||
|
|
||||||
c = readByte();
|
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;
|
*p = 0;
|
||||||
return buf;
|
return buf;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue