LOC_LoadFile: Fix UTF-8 BOM check

This commit is contained in:
Andrei Drexler 2023-01-18 23:01:50 +03:00 committed by Ozkan Sezer
parent c5130f23a0
commit 1aeccac358

View file

@ -2607,7 +2607,7 @@ fail: mz_zip_reader_end(&archive);
cursor = localization.text; cursor = localization.text;
// skip BOM // skip BOM
if ((unsigned char)(cursor[0]) == 0xEF && (unsigned char)(cursor[1]) == 0xBB && cursor[2] == 0xB) if ((unsigned char)(cursor[0]) == 0xEF && (unsigned char)(cursor[1]) == 0xBB && (unsigned char)(cursor[2]) == 0xBF)
cursor += 3; cursor += 3;
lineno = 0; lineno = 0;