From b08da355c77ac1c940b258363218b6b6e6d6b927 Mon Sep 17 00:00:00 2001 From: Daniel Lehman Date: Thu, 5 Jan 2012 14:49:50 -0800 Subject: msvcp90: fix return value for ctype do_is(ch) return 'true' if _Getwctype returns a mask that ANDs with given mask either true or false is returned, not the masked value --- dlls/msvcp90/locale.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/msvcp90/locale.c b/dlls/msvcp90/locale.c index 1d7564e..489299a 100644 --- a/dlls/msvcp90/locale.c +++ b/dlls/msvcp90/locale.c @@ -2351,7 +2351,7 @@ DEFINE_THISCALL_WRAPPER(ctype_wchar_do_is_ch, 12) MSVCP_bool __thiscall ctype_wchar_do_is_ch(const ctype_wchar *this, short mask, wchar_t ch) { TRACE("(%p %x %d)\n", this, mask, ch); - return !(_Getwctype(ch, &this->ctype) & mask); + return (_Getwctype(ch, &this->ctype) & mask) != 0; } /* ?do_is@?$ctype@_W@std@@MBEPB_WPB_W0PAF@Z */ -- 1.6.0.4