mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 05:26:58 +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:
parent
1ad16a37f2
commit
ccc52d2e5b
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue