Fixed bug in converting wide characters to multibyte.
This commit is contained in:
parent
4836452038
commit
a80ddb4a78
|
@ -86,7 +86,7 @@ ARCH_STRING::convStringWCToMB(char* dst,
|
|||
}
|
||||
len += mblen;
|
||||
}
|
||||
int mblen = wctomb(NULL, L'\0');
|
||||
int mblen = wctomb(dummy, L'\0');
|
||||
if (mblen != -1) {
|
||||
len += mblen - 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue