From ece5d712f6e1719c173289d18631159f7badc8cd Mon Sep 17 00:00:00 2001 From: Akihiro Sagawa Date: Wed, 21 Mar 2012 23:02:17 +0900 Subject: [PATCH] msvcrt: Fix _mbsnbcmp and _mbsnbicmp implementation. --- dlls/msvcrt/mbcs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msvcrt/mbcs.c b/dlls/msvcrt/mbcs.c index 37b72a39b2..0f15cb1ce5 100644 --- a/dlls/msvcrt/mbcs.c +++ b/dlls/msvcrt/mbcs.c @@ -896,7 +896,7 @@ int CDECL _mbsnbcmp(const unsigned char* str, const unsigned char* cmp, MSVCRT_s if (_ismbblead(*cmp)) cmpc=(len>=2)?_mbsnextc(cmp):0; else - cmpc=*str; + cmpc=*cmp; if(strc != cmpc) return strc < cmpc ? -1 : 1; len -= clen; @@ -967,7 +967,7 @@ int CDECL _mbsnbicmp(const unsigned char* str, const unsigned char* cmp, MSVCRT_ if (_ismbblead(*cmp)) cmpc=(len>=2)?_mbsnextc(cmp):0; else - cmpc=*str; + cmpc=*cmp; strc = _mbctolower(strc); cmpc = _mbctolower(cmpc); if(strc != cmpc) -- 2.32.0.93.g670b81a890