From 4baccf2802cc45325221ddc268f42e7c4e1f9ea9 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Thu, 9 May 2019 04:38:48 +0800 Subject: [PATCH] Don't use MB_PRECOMPOSED --- code/nel/src/misc/string_common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/nel/src/misc/string_common.cpp b/code/nel/src/misc/string_common.cpp index ba911c1bc..6833ababd 100644 --- a/code/nel/src/misc/string_common.cpp +++ b/code/nel/src/misc/string_common.cpp @@ -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); if (!tmp) return std::string(); - int tmpLen = MultiByteToWideChar(srcCp, MB_PRECOMPOSED, + int tmpLen = MultiByteToWideChar(srcCp, 0, str, (int)(len + 1), /* include null-termination */ tmp, (int)((len + 1) * 4)); if (tmpLen <= 1)