Piotr Caban : msvcrt: Use correct locale when validating character in _ismbcl0_l and _ismbcl1_l.
Alexandre Julliard
julliard at winehq.org
Fri Feb 15 14:37:00 CST 2019
Module: wine
Branch: master
Commit: 7d383d573da3b29614e1adc343f34d762176e42e
URL: https://source.winehq.org/git/wine.git/?a=commit;h=7d383d573da3b29614e1adc343f34d762176e42e
Author: Piotr Caban <piotr at codeweavers.com>
Date: Fri Feb 15 12:24:37 2019 +0100
msvcrt: Use correct locale when validating character in _ismbcl0_l and _ismbcl1_l.
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 909ea46..c8ee84d 100644
--- a/dlls/msvcrt/mbcs.c
+++ b/dlls/msvcrt/mbcs.c
@@ -2566,7 +2566,7 @@ int CDECL _ismbcl0_l(unsigned int c, MSVCRT__locale_t locale)
if(mbcinfo->mbcodepage == 932)
{
/* JIS non-Kanji */
- return _ismbclegal(c) && c >= 0x8140 && c <= 0x889e;
+ return _ismbclegal_l(c, locale) && c >= 0x8140 && c <= 0x889e;
}
return 0;
@@ -2595,7 +2595,7 @@ int CDECL _ismbcl1_l(unsigned int c, MSVCRT__locale_t locale)
if(mbcinfo->mbcodepage == 932)
{
/* JIS level-1 */
- return _ismbclegal(c) && c >= 0x889f && c <= 0x9872;
+ return _ismbclegal_l(c, locale) && c >= 0x889f && c <= 0x9872;
}
return 0;
More information about the wine-cvs
mailing list