Windows fix for ConfigCompiler::ReadInput.

This commit is contained in:
Gunnar Beutner 2013-01-23 21:58:19 +01:00
parent 116e420167
commit 99e58f7031
1 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ ConfigCompiler::~ConfigCompiler(void)
*/
size_t ConfigCompiler::ReadInput(char *buffer, size_t max_size)
{
m_Input->readsome(buffer, max_size);
m_Input->read(buffer, max_size);
return static_cast<size_t>(m_Input->gcount());
}
@ -122,7 +122,7 @@ void ConfigCompiler::HandleLibrary(const String& library)
vector<ConfigItem::Ptr> ConfigCompiler::CompileStream(const String& path,
istream *stream)
{
stream->exceptions(istream::failbit | istream::badbit);
stream->exceptions(istream::badbit);
ConfigCompiler ctx(path, stream);
ctx.Compile();