[BUG_FIXED] (Author: FLS) Fix EOL type not correctly determined for UTF-16 files bug.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1143 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
Don Ho 2013-11-01 07:54:59 +00:00
parent cf2dce6728
commit 65ac0ce09e
1 changed files with 1 additions and 0 deletions

View File

@ -830,6 +830,7 @@ bool FileManager::loadFileData(Document doc, const TCHAR * filename, Utf8_16_Rea
do {
lenFile = fread(data+incompleteMultibyteChar, 1, blockSize-incompleteMultibyteChar, fp) + incompleteMultibyteChar;
if (lenFile <= 0) break;
// check if file contain any BOM
if (isFirstTime)