diff --git a/reactos/lib/rtl/nls.c b/reactos/lib/rtl/nls.c index 89ed9342c78..4bfa0c96160 100644 --- a/reactos/lib/rtl/nls.c +++ b/reactos/lib/rtl/nls.c @@ -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++;