minor optimization of RtlCreateUnicodeString: as the memory never overlaps, just copy the memory instead of moving it

svn path=/trunk/; revision=18011
This commit is contained in:
Thomas Bluemel 2005-09-23 14:13:44 +00:00
parent 4b69f7ad42
commit 528323ece7

View file

@ -1919,7 +1919,7 @@ RtlCreateUnicodeString(
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);