msvcrt: Don't call get_locale two times in _isctype function.
This commit is contained in:
parent
68239a620c
commit
f421d22e5a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue