Daniel Lehman : msvcp90: Fix return value for ctype<wchar_t> do_is(ch).

Alexandre Julliard julliard at winehq.org
Fri Jan 6 15:31:33 CST 2012


Module: wine
Branch: master
Commit: 4654b3f68e9640edfec15439ea696d352f71c513
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4654b3f68e9640edfec15439ea696d352f71c513

Author: Daniel Lehman <dlehman at esri.com>
Date:   Thu Jan  5 14:49:50 2012 -0800

msvcp90: Fix return value for ctype<wchar_t> do_is(ch).

---

 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 3f09ea0..fcf2c8b 100644
--- a/dlls/msvcp90/locale.c
+++ b/dlls/msvcp90/locale.c
@@ -2339,7 +2339,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 at _W@std@@MBEPB_WPB_W0PAF at Z */




More information about the wine-cvs mailing list