Don't use MB_PRECOMPOSED
This commit is contained in:
parent
f5424aac3e
commit
4baccf2802
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ std::string winCpToCp(const char *str, size_t len, UINT srcCp, UINT dstCp)
|
||||||
wchar_t *tmp = (wchar_t *)_malloca((len + 1) * 4);
|
wchar_t *tmp = (wchar_t *)_malloca((len + 1) * 4);
|
||||||
if (!tmp)
|
if (!tmp)
|
||||||
return std::string();
|
return std::string();
|
||||||
int tmpLen = MultiByteToWideChar(srcCp, MB_PRECOMPOSED,
|
int tmpLen = MultiByteToWideChar(srcCp, 0,
|
||||||
str, (int)(len + 1), /* include null-termination */
|
str, (int)(len + 1), /* include null-termination */
|
||||||
tmp, (int)((len + 1) * 4));
|
tmp, (int)((len + 1) * 4));
|
||||||
if (tmpLen <= 1)
|
if (tmpLen <= 1)
|
||||||
|
|
Loading…
Reference in a new issue