mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 12:23:30 +00:00
- Fix converting of UTF8 sequences in IntMultiByteToWideCharUTF8.
svn path=/trunk/; revision=10755
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user