Commit 2b7dcfb4 authored by Bartosz Kosiorek's avatar Bartosz Kosiorek Committed by Alexandre Julliard

msvcrt: Fix _mbslwr_s_l implementation.

parent c59a856c
......@@ -2386,13 +2386,19 @@ unsigned char* CDECL _mbslwr(unsigned char *s)
int CDECL _mbslwr_s_l(unsigned char* s, size_t len, _locale_t locale)
{
unsigned char *p = s;
pthreadmbcinfo mbcinfo;
if (!s && !len)
return 0;
if (!MSVCRT_CHECK_PMT(s && len))
return EINVAL;
if (get_mbcinfo()->ismbcodepage)
if (locale)
mbcinfo = locale->mbcinfo;
else
mbcinfo = get_mbcinfo();
if (mbcinfo->ismbcodepage)
{
unsigned int c;
for ( ; *s && len > 0; len--)
......
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