[ros-diffs] [pschweitzer] 35541: memcpy -> RtlCopyMemory
pschweitzer at svn.reactos.org
pschweitzer at svn.reactos.org
Fri Aug 22 22:25:36 CEST 2008
Author: pschweitzer
Date: Fri Aug 22 15:25:36 2008
New Revision: 35541
URL: http://svn.reactos.org/svn/reactos?rev=35541&view=rev
Log:
memcpy -> RtlCopyMemory
Modified:
branches/pierre-fsd/lib/rtl/dos8dot3.c
Modified: branches/pierre-fsd/lib/rtl/dos8dot3.c
URL: http://svn.reactos.org/svn/reactos/branches/pierre-fsd/lib/rtl/dos8dot3.c?rev=35541&r1=35540&r2=35541&view=diff
==============================================================================
--- branches/pierre-fsd/lib/rtl/dos8dot3.c [iso-8859-1] (original)
+++ branches/pierre-fsd/lib/rtl/dos8dot3.c [iso-8859-1] Fri Aug 22 15:25:36 2008
@@ -198,7 +198,7 @@
}
/* Build the short name */
- memcpy(Name8dot3->Buffer, NameBuffer, CopyLength * sizeof(WCHAR));
+ RtlCopyMemory(Name8dot3->Buffer, NameBuffer, CopyLength * sizeof(WCHAR));
j = CopyLength;
if (Context->CheckSumInserted)
{
@@ -221,7 +221,7 @@
}
j += IndexLength + 1;
- memcpy(Name8dot3->Buffer + j, ExtBuffer, ExtLength * sizeof(WCHAR));
+ RtlCopyMemory(Name8dot3->Buffer + j, ExtBuffer, ExtLength * sizeof(WCHAR));
Name8dot3->Length = (j + ExtLength) * sizeof(WCHAR);
DPRINT("Name8dot3: '%wZ'\n", Name8dot3);
@@ -229,8 +229,8 @@
/* Update context */
Context->NameLength = CopyLength;
Context->ExtensionLength = ExtLength;
- memcpy(Context->NameBuffer, NameBuffer, CopyLength * sizeof(WCHAR));
- memcpy(Context->ExtensionBuffer, ExtBuffer, ExtLength * sizeof(WCHAR));
+ RtlCopyMemory(Context->NameBuffer, NameBuffer, CopyLength * sizeof(WCHAR));
+ RtlCopyMemory(Context->ExtensionBuffer, ExtBuffer, ExtLength * sizeof(WCHAR));
}
More information about the Ros-diffs
mailing list