Remove bogus check
All checks were successful
CI / build-and-analyze (push) Successful in 50s

This commit is contained in:
2026-08-18 10:31:53 +03:00
parent 04d8de9ec6
commit 6d2796912b

View File

@@ -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';