Problem: formatting broken

Solution: run make clang-format-diff
This commit is contained in:
Luca Boccassi
2021-07-30 14:40:44 +01:00
parent 1caef95b48
commit c45750a29f

View File

@@ -877,8 +877,8 @@ char *widechar_to_utf8 (const wchar_t *widestring)
nch = WideCharToMultiByte (CP_UTF8, 0, widestring, -1, 0, 0, NULL, NULL);
if (nch > 0) {
utf8 = (char *) malloc ((nch + 1) * sizeof (char));
n = WideCharToMultiByte (CP_UTF8, 0, widestring, -1, utf8,
nch, NULL, NULL);
n = WideCharToMultiByte (CP_UTF8, 0, widestring, -1, utf8, nch, NULL,
NULL);
utf8[nch] = 0;
}
return utf8;