Author: navaraf
Date: Thu Jul 20 10:25:51 2006
New Revision: 23183
URL:
http://svn.reactos.org/svn/reactos?rev=23183&view=rev
Log:
Fix a bug in RtlMultiByteToUnicodeSize. Credits belong to whoever debugged it.
Modified:
trunk/reactos/lib/rtl/nls.c
Modified: trunk/reactos/lib/rtl/nls.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/nls.c?rev=23183&am…
==============================================================================
--- trunk/reactos/lib/rtl/nls.c (original)
+++ trunk/reactos/lib/rtl/nls.c Thu Jul 20 10:25:51 2006
@@ -285,18 +285,12 @@
{
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 */