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;
```suggestion:-0+0 if (!MSVCRT_CHECK_PMT_ERR(FALSE, ERANGE)) return ERANGE; ```
Please also test errno in the tests.