Kaydet (Commit) b3c966ab authored tarafından Herbert Dürr's avatar Herbert Dürr

fix xml2cmp when using a generic STL

std::ifstream's EOF bit is not something to be worry about
when the preceding operation was reading to the EOF
üst 4e8014c6
......@@ -52,7 +52,7 @@ LoadXmlFile( Buffer & o_rBuffer,
// Read file:
aXmlFile.read(o_rBuffer.Data(), (int) nBufferSize);
bool ret = aXmlFile.good() != 0;
const bool ret = !aXmlFile.fail();
aXmlFile.close();
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment