msvcrt: Fix _mbcjistojms off by one error.
This commit is contained in:
parent
c1558bb7ef
commit
7535b367dd
|
@ -461,7 +461,7 @@ unsigned int CDECL _mbcjistojms(unsigned int c)
|
|||
else
|
||||
c += 0x7d;
|
||||
|
||||
if(LOBYTE(c) > 0x7F)
|
||||
if(LOBYTE(c) >= 0x7F)
|
||||
c += 0x1;
|
||||
|
||||
c = (((HIBYTE(c) - 0x21)/2 + 0x81) << 8) | LOBYTE(c);
|
||||
|
|
|
@ -877,11 +877,6 @@ static void test_mbcjisjms(void)
|
|||
unsigned int ret, exp;
|
||||
ret = _mbcjistojms(jisjms[j][0]);
|
||||
exp = (cp[i] == 932) ? jisjms[j][1] : jisjms[j][0];
|
||||
if (LOBYTE(exp) == 0x80 && cp[i] == 932) {
|
||||
todo_wine ok(ret == exp, "Expected 0x%x, got 0x%x (0x%x, codepage=%d)\n",
|
||||
exp, ret, jisjms[j][0], cp[i]);
|
||||
continue;
|
||||
}
|
||||
ok(ret == exp, "Expected 0x%x, got 0x%x (0x%x, codepage=%d)\n",
|
||||
exp, ret, jisjms[j][0], cp[i]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue