mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 17:00:51 +08: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:
committed by
GitHub
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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user