Fix Windows builds pt 3 (Issue #18)

This commit is contained in:
Michael R Sweet
2026-02-14 15:34:06 -05:00
parent 7d43cabbe0
commit d4c3e5ac13

View File

@@ -1433,7 +1433,7 @@ _pdfio_win32_open(const char *filename, // I - UTF-8 filename
// Convert the UTF-8 string to UTF-16... // Convert the UTF-8 string to UTF-16...
utf16ptr = utf16name; utf16ptr = utf16name;
while (*filename && utf16ptr < (utf16name + sizeof(utf16name) / sizeof(utf16name[0]) - 2);) while (*filename && utf16ptr < (utf16name + sizeof(utf16name) / sizeof(utf16name[0]) - 2))
{ {
if ((unich = *filename++) & 0x80) if ((unich = *filename++) & 0x80)
{ {