linux PIString fix
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user