mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 22:01:43 +00:00
- Fix converting of UTF8 sequences in IntMultiByteToWideCharUTF8.
svn path=/trunk/; revision=10755
This commit is contained in:
parent
3db1c05c05
commit
0ebfc36a78
1 changed files with 4 additions and 1 deletions
|
@ -344,9 +344,12 @@ IntMultiByteToWideCharUTF8(DWORD Flags,
|
|||
continue;
|
||||
}
|
||||
Length = UTF8Length[Char - 0x80];
|
||||
WideChar = UTF8Mask[Length];
|
||||
WideChar = Char & UTF8Mask[Length];
|
||||
while (Length && MultiByteString < MbsEnd)
|
||||
{
|
||||
WideChar = (WideChar << 6) | *MultiByteString++;
|
||||
Length--;
|
||||
}
|
||||
*WideCharString++ = WideChar;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue