mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 07:26:20 +00:00
Fix a bug in RtlMultiByteToUnicodeSize. Credits belong to whoever debugged it.
svn path=/trunk/; revision=23183
This commit is contained in:
parent
2c1a305f03
commit
602677e8f5
1 changed files with 5 additions and 11 deletions
|
@ -285,19 +285,13 @@ RtlMultiByteToUnicodeSize(PULONG UnicodeSize,
|
|||
{
|
||||
if (NlsLeadByteInfo[*(PUCHAR)MbString++])
|
||||
{
|
||||
if (!MbSize)
|
||||
{
|
||||
/* partial char, ignore it */
|
||||
Length++;
|
||||
break;
|
||||
if (MbSize)
|
||||
{
|
||||
/* Move on */
|
||||
MbSize--;
|
||||
MbString++;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Move on */
|
||||
MbSize--;
|
||||
MbString++;
|
||||
}
|
||||
|
||||
/* Increase returned size */
|
||||
Length++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue