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.