https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bb7292b287221f820e77c2...
commit bb7292b287221f820e77c2434bcc652dbb484ae6 Author: Eric Kohl eric.kohl@reactos.org AuthorDate: Sun Oct 7 22:44:54 2018 +0200 Commit: Eric Kohl eric.kohl@reactos.org CommitDate: Sun Oct 7 22:56:14 2018 +0200
[CRT] Fix two obvious typos in _mbbtype().
Patch by Kudratov Olimjon.
CORE-8545 --- sdk/lib/crt/mbstring/mbbtype.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sdk/lib/crt/mbstring/mbbtype.c b/sdk/lib/crt/mbstring/mbbtype.c index e1a21bd9bc..14775ea8f0 100644 --- a/sdk/lib/crt/mbstring/mbbtype.c +++ b/sdk/lib/crt/mbstring/mbbtype.c @@ -25,7 +25,7 @@ int _mbbtype(unsigned char c , int type) { return _MBC_TRAIL; } - else if (( c >= 0x20 && c >= 0x7E ) || ( c >= 0xA1 && c <= 0xDF ) || + else if (( c >= 0x20 && c <= 0x7E ) || ( c >= 0xA1 && c <= 0xDF ) || ( c >= 0x81 && c <= 0x9F ) || ( c >= 0xE0 && c <= 0xFC ) ) return _MBC_ILLEGAL; else @@ -36,7 +36,7 @@ int _mbbtype(unsigned char c , int type) } else if ( (c >= 0x81 && c <= 0x9F ) || ( c >= 0xE0 && c <= 0xFC) ) return _MBC_LEAD; - else if (( c >= 0x20 && c >= 0x7E ) || ( c >= 0xA1 && c <= 0xDF ) || + else if (( c >= 0x20 && c <= 0x7E ) || ( c >= 0xA1 && c <= 0xDF ) || ( c >= 0x81 && c <= 0x9F ) || ( c >= 0xE0 && c <= 0xFC ) ) return _MBC_ILLEGAL; else