Commit f421d22e authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Don't call get_locale two times in _isctype function.

parent 68239a62
......@@ -85,8 +85,8 @@ int CDECL _isctype(int c, int type)
*pconv++ = (UINT)c >> 8;
*pconv++ = c & 0xff;
*pconv = 0;
/* FIXME: Use ctype LCID, not lc_all */
if (GetStringTypeExA(get_locale()->locinfo->lc_handle[MSVCRT_LC_CTYPE],
if (GetStringTypeExA(locale->locinfo->lc_handle[MSVCRT_LC_CTYPE],
CT_CTYPE1, convert, convert[1] ? 2 : 1, &typeInfo))
return typeInfo & type;
}
......
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