mirror of
https://github.com/reactos/reactos.git
synced 2024-09-16 07:39:32 +00:00
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:
parent
4b69f7ad42
commit
528323ece7
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue