[1/2] msvcrt: Implement _mbsnbcat_s.
piotr.caban at gmail.com
Wed Oct 20 11:19:10 CDT 2010
On 10/20/10 08:49, Andrew Nguyen wrote:
+ * a lead byte and move the pointer back by one for later overwrite. */
+ if (get_locale()->locinfo->mb_cur_max > 1 &&
MSVCRT_isleadbyte(*(ptr - 1)))
+ size++, ptr--;
You may access dst-1.
+ ok(errno == EINVAL, "Expected errno to be EINVAL, got %d\n", ret);
Printing ret here may be misleading.
More information about the wine-devel