mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[KERNEL32] Fix multibyte conversion in default char (#2111)
Fix kernel32!MultiByteToWideChar function. The default character was wrong. CORE-16468
This commit is contained in:
@@ -654,14 +654,9 @@ IntMultiByteToWideCharCP(UINT CodePage,
|
||||
continue;
|
||||
}
|
||||
|
||||
if (MultiByteString == MbsEnd)
|
||||
if (MultiByteString == MbsEnd || *MultiByteString == 0)
|
||||
{
|
||||
*WideCharString++ = MultiByteTable[Char];
|
||||
}
|
||||
else if (*MultiByteString == 0)
|
||||
{
|
||||
*WideCharString++ = UNICODE_NULL;
|
||||
MultiByteString++;
|
||||
*WideCharString++ = CodePageTable->UniDefaultChar;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user