Module: wine Branch: master Commit: f421d22e5a5c9fb0aeeeb0f772598fe1552c990f URL: http://source.winehq.org/git/wine.git/?a=commit;h=f421d22e5a5c9fb0aeeeb0f772...
Author: Piotr Caban piotr@codeweavers.com Date: Thu Mar 31 17:09:09 2011 +0200
msvcrt: Don't call get_locale two times in _isctype function.
---
dlls/msvcrt/ctype.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msvcrt/ctype.c b/dlls/msvcrt/ctype.c index 7e7d9f0..ba9d9ba 100644 --- a/dlls/msvcrt/ctype.c +++ b/dlls/msvcrt/ctype.c @@ -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; }