Minor change.
Modified: trunk/reactos/lib/rtl/nls.c
_____
Modified: trunk/reactos/lib/rtl/nls.c
--- trunk/reactos/lib/rtl/nls.c 2005-10-08 22:38:55 UTC (rev 18363)
+++ trunk/reactos/lib/rtl/nls.c 2005-10-08 22:40:04 UTC (rev 18364)
@@ -449,19 +449,18 @@
if (NlsMbCodePageTag == FALSE)
{
/* single-byte code page */
- if (UnicodeSize > (MbSize * sizeof(WCHAR)))
- Size = MbSize;
- else
- Size = UnicodeSize / sizeof(WCHAR);
+ Size = (UnicodeSize > (MbSize * sizeof (WCHAR)))
+ ? MbSize
+ : (UnicodeSize / sizeof (WCHAR));
if (ResultSize != NULL)
+ {
*ResultSize = Size;
+ }
for (i = 0; i < Size; i++)
{
- *MbString = NlsUnicodeToAnsiTable[*UnicodeString];
- MbString++;
- UnicodeString++;
+ *MbString++ = NlsUnicodeToAnsiTable[*UnicodeString++];
}
}
else
Show replies by date