minor optimization of RtlCreateUnicodeString: as the memory never
overlaps, just copy the memory instead of moving it
Modified: trunk/reactos/lib/rtl/unicode.c
_____
Modified: trunk/reactos/lib/rtl/unicode.c
--- trunk/reactos/lib/rtl/unicode.c 2005-09-23 11:12:18 UTC (rev
18010)
+++ trunk/reactos/lib/rtl/unicode.c 2005-09-23 14:13:44 UTC (rev
18011)
@@ -1919,7 +1919,7 @@
if (UniDest->Buffer == NULL) return FALSE;
- RtlMoveMemory(UniDest->Buffer, Source, Length);
+ RtlCopyMemory(UniDest->Buffer, Source, Length);
UniDest->MaximumLength = (USHORT)Length;
UniDest->Length = Length - sizeof (WCHAR);