Commit 622c218c authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Validate character in _ismbcl0.

parent 64453ea2
......@@ -2560,7 +2560,7 @@ int CDECL _ismbcl0(unsigned int c)
if(get_mbcinfo()->mbcodepage == 932)
{
/* JIS non-Kanji */
return (c >= 0x8140 && c <= 0x889e);
return _ismbclegal(c) && c >= 0x8140 && c <= 0x889e;
}
return 0;
}
......@@ -3288,6 +3288,9 @@ static void test__ismbclx(void)
ret = _ismbcl0(0x8140);
ok(ret, "got %d\n", ret);
ret = _ismbcl0(0x817f);
ok(!ret, "got %d\n", ret);
_setmbcp(cp);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment