diff --git a/FileUtils.cpp b/FileUtils.cpp index 4aec16aa..d2730102 100644 --- a/FileUtils.cpp +++ b/FileUtils.cpp @@ -285,10 +285,10 @@ bool CFile::ReadLine(CString& sData, const CString & sDelimiter) { return true; } - if( bEOF ) { + if( bEOF && m_sBuffer.size() ) { sData = m_sBuffer; m_sBuffer.clear(); - break; + return true; } return !bEOF;