21 Jul
2023
21 Jul
'23
5:03 p.m.
Victor Hermann Chiletto (@vitorhnn) commented about dlls/msvcrt/locale.c:
if (!strcmp(locale, data->cached_locale)) { if (codepage) *codepage = data->cached_cp; - if (sname) - wcsncpy(sname, data->cached_sname, sname_size); + if (sname_match) + *sname_match = data->cached_sname_match; + wcsncpy(sname, data->cached_sname, sname_size);
I think we should replace wcsncpy with lstrcpynW here and on lines 392 and 408. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/3375#note_39751