X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=Usermode%2FApplications%2Faxwin3_src%2FWM%2Futf-8.c;h=93e0318b00881e65b955a59baa8253b602b3859a;hb=265bcb9e6fd6611eda6bba3aed13da83e584e058;hp=5c088281b24909a796aeafc14bef77755288995e;hpb=f0c407e7d468bc5acfd8d436be7f79f6e6248421;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin3_src/WM/utf-8.c b/Usermode/Applications/axwin3_src/WM/utf-8.c index 5c088281..93e0318b 100644 --- a/Usermode/Applications/axwin3_src/WM/utf-8.c +++ b/Usermode/Applications/axwin3_src/WM/utf-8.c @@ -52,7 +52,7 @@ int ReadUTF8(const char *Input, uint32_t *Val) } // Four Byte - if( (*str & 0xF1) == 0xF0 ) { + if( (*str & 0xF8) == 0xF0 ) { *Val = (*str & 0x07) << 18; // Upper 3 Bits str ++; if( (*str & 0xC0) != 0x80) return -1; // Validity check