28 May
2024
28 May
'24
9:03 p.m.
Piotr Caban (@piotr) commented about dlls/msvcrt/mbcs.c:
+ curlen = 2; + if (!truncate && maxsize <= curlen) + { + maxsize = 0; + break; + } + } + + if (!maxsize && truncate) + { + *last = 0; + return STRUNCATE; + } + if (!truncate) + { + while (curlen--) This loop can be removed.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/5547#note_69193