mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Fix a bug in RtlMultiByteToUnicodeSize. Credits belong to whoever debugged it.
svn path=/trunk/; revision=23183
This commit is contained in:
+5
-11
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user