mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:05:43 +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 (NlsLeadByteInfo[*(PUCHAR)MbString++])
|
||||||
{
|
{
|
||||||
if (!MbSize)
|
if (MbSize)
|
||||||
{
|
|
||||||
/* partial char, ignore it */
|
|
||||||
Length++;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
/* Move on */
|
/* Move on */
|
||||||
MbSize--;
|
MbSize--;
|
||||||
MbString++;
|
MbString++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Increase returned size */
|
/* Increase returned size */
|
||||||
Length++;
|
Length++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue