From 528323ece73f59e6e35f270e3b352a3e62420fd1 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Fri, 23 Sep 2005 14:13:44 +0000 Subject: [PATCH] minor optimization of RtlCreateUnicodeString: as the memory never overlaps, just copy the memory instead of moving it svn path=/trunk/; revision=18011 --- reactos/lib/rtl/unicode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/rtl/unicode.c b/reactos/lib/rtl/unicode.c index 217f695385c..995d889bd32 100644 --- a/reactos/lib/rtl/unicode.c +++ b/reactos/lib/rtl/unicode.c @@ -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);