Piotr Caban (@piotr) commented about dlls/msvcrt/mbcs.c:
return _mbclen_l(str, NULL);
}
+/*********************************************************************
_mbsinc_l(MSVCRT.@)
- */
+unsigned char* CDECL _mbsinc_l(const unsigned char* str, _locale_t locale) +{
- if (!MSVCRT_CHECK_PMT(str))
- return NULL;
I didn't test all C-runtime versions but it looks like the function should crash on str == NULL.