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

oldstable
Piotr Caban 2011-03-31 17:09:09 +02:00 committed by Alexandre Julliard
parent 68239a620c
commit f421d22e5a
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}