msvcrt: Use given locale info in _mbtowcs_l.

This commit is contained in:
Akihiro Sagawa 2011-11-30 22:34:05 +09:00 committed by Alexandre Julliard
parent 31141a3bea
commit f9403bfb90
1 changed files with 1 additions and 1 deletions

View File

@ -1937,7 +1937,7 @@ MSVCRT_size_t CDECL MSVCRT__mbstowcs_l(MSVCRT_wchar_t *wcstr, const char *mbstr,
if(mbstr[size] == '\0') if(mbstr[size] == '\0')
break; break;
size += (MSVCRT_isleadbyte(mbstr[size]) ? 2 : 1); size += (MSVCRT__isleadbyte_l(mbstr[size], locale) ? 2 : 1);
} }
size = MultiByteToWideChar(locinfo->lc_codepage, 0, size = MultiByteToWideChar(locinfo->lc_codepage, 0,