minor optimization of RtlCreateUnicodeString: as the memory never overlaps, just...
authorThomas Bluemel <thomas@reactsoft.com>
Fri, 23 Sep 2005 14:13:44 +0000 (14:13 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Fri, 23 Sep 2005 14:13:44 +0000 (14:13 +0000)
svn path=/trunk/; revision=18011

reactos/lib/rtl/unicode.c

index 217f695..995d889 100644 (file)
@@ -1919,7 +1919,7 @@ RtlCreateUnicodeString(
 
     if (UniDest->Buffer == NULL) return FALSE;
 
 
     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);
 
     UniDest->MaximumLength = (USHORT)Length;
     UniDest->Length = Length - sizeof (WCHAR);