28 May
2024
28 May
'24
9:04 p.m.
Piotr Caban (@piotr) commented about dlls/msvcrt/mbcs.c:
+ *last = 0; + return STRUNCATE; + } + if (!truncate) + { + while (curlen--) + if (!*src++) + { + *start = 0; + return EILSEQ; + } + } + if (!maxsize) + { + *start = 0; + if (!MSVCRT_CHECK_PMT(FALSE)) return ERANGE;
if (!MSVCRT_CHECK_PMT_ERR(FALSE, ERANGE)) return ERANGE;
Please also test errno in the tests. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5547#note_69196