msvcrt: Pass INT_MAX as the length in implementations of the _mbscoll family.
commitadfb58f17d492c5451fdb5dfcf111303b9d1eaad
authorTim Clem <tclem@codeweavers.com>
Thu, 16 Nov 2023 20:01:59 +0000 (16 12:01 -0800)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 17 Nov 2023 18:54:17 +0000 (17 19:54 +0100)
treea0582046dd8f553791406b62d1cc218768800d79
parente3709b0c9d0bdacfef9c837672d63677c69d7531
msvcrt: Pass INT_MAX as the length in implementations of the _mbscoll family.

A length of -1 has no special meaning for the mbsn*coll functions, and
since it is > INT_MAX, it will eventually trigger _invalid_parameter in
_strnicmp_l in newer versions of msvcrt.
dlls/msvcrt/mbcs.c