mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-08 12:24:09 +00:00
Merge ea65ce06a9
into 9d67bf2662
This commit is contained in:
commit
9b1ae3c45f
|
@ -429,8 +429,7 @@ size_t os_wcs_to_utf8(const wchar_t *str, size_t len, char *dst,
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (out_len)
|
if (out_len)
|
||||||
out_len =
|
out_len = wchar_to_utf8(str, in_len, dst, out_len, 0);
|
||||||
wchar_to_utf8(str, in_len, dst, out_len + 1, 0);
|
|
||||||
|
|
||||||
dst[out_len] = 0;
|
dst[out_len] = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue