linux PIString fix

This commit is contained in:
2022-04-25 23:32:21 +03:00
parent bd9ad16074
commit 546ad6a744

View File

@@ -223,7 +223,7 @@ void PIString::appendFromChars(const char * c, int s, const char * codepage) {
} }
#else #else
# ifdef WINDOWS # ifdef WINDOWS
if (s == -1) s = strlen(s); if (s == -1) s = strlen(c);
int sz = MultiByteToWideChar((uint)(uintptr_t)codepage, MB_ERR_INVALID_CHARS, c, s, 0, 0); int sz = MultiByteToWideChar((uint)(uintptr_t)codepage, MB_ERR_INVALID_CHARS, c, s, 0, 0);
if (sz <= 0) return; if (sz <= 0) return;
enlarge(sz); enlarge(sz);