This commit is contained in:
@@ -33,10 +33,6 @@ static int utf8ToWchar(const char *utf8, wchar_t *out, int size) {
|
||||
static void wcharToUtf8(const wchar_t *w, char *out, int size) {
|
||||
int len;
|
||||
|
||||
if (!w || !out || size <= 0) {
|
||||
out[0] = '\0';
|
||||
}
|
||||
|
||||
len = WideCharToMultiByte(CP_UTF8, 0, w, -1, out, size, NULL, NULL);
|
||||
if (len <= 0 || len > size)
|
||||
out[0] = '\0';
|
||||
|
||||
Reference in New Issue
Block a user