mirror of
https://github.com/ONLYOFFICE/core.git
synced 2025-04-18 14:04:06 +03:00
fix bug #68471
This commit is contained in:
parent
cd7b39acf2
commit
ebadb754c5
@ -86,6 +86,8 @@ const std::vector<std::string> TxtFile::readAnsiOrCodePage() // == readUtf8witho
|
||||
const std::vector<std::wstring> TxtFile::readUnicodeFromBytes(char *file_data, long file_size)
|
||||
{
|
||||
std::vector<std::wstring> result;
|
||||
if (file_size < 3) return result;
|
||||
|
||||
long start_pos = 2; // skip Header
|
||||
|
||||
for (long end_pos = start_pos; end_pos + 1 < file_size; end_pos += 2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user