wchar_t* intermediate;
size_t mb_size;
- size_t w_size = MultiByteToWideChar(28591, MB_COMPOSITE, s, -1, NULL, 0);
+ size_t w_size = MultiByteToWideChar(28591, 0, s, -1, NULL, 0);
if (w_size == 0) {
PR_DEBUGF("Count MultiByteToWideChar() error 0x%x\n", GetLastError());
return PARSE_E_INTERNAL;
if (intermediate == NULL)
return PARSE_E_NO_MEM;
- if (MultiByteToWideChar(28591, MB_COMPOSITE, s, -1, intermediate, 0) == 0) {
+ if (MultiByteToWideChar(28591, 0, s, -1, intermediate, w_size) == 0) {
PR_DEBUGF("Convert MultiByteToWideChar() error 0x%x\n", GetLastError());
return PARSE_E_INTERNAL;
}