Commit 927a9a5a authored by Bartosz Kosiorek's avatar Bartosz Kosiorek Committed by Alexandre Julliard

msvcrt: Fix error handling for _mbscmp_l.

parent eee55c35
...@@ -982,7 +982,8 @@ int CDECL _mbscmp_l(const unsigned char* str, const unsigned char* cmp, _locale_ ...@@ -982,7 +982,8 @@ int CDECL _mbscmp_l(const unsigned char* str, const unsigned char* cmp, _locale_
{ {
pthreadmbcinfo mbcinfo; pthreadmbcinfo mbcinfo;
if (!str || !cmp) return INT_MAX; if (!MSVCRT_CHECK_PMT(str && cmp))
return _NLSCMPERROR;
mbcinfo = locale ? locale->mbcinfo : get_mbcinfo(); mbcinfo = locale ? locale->mbcinfo : get_mbcinfo();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment