From 761e03c5a1d3a743b60d1144d6c0af86a4ea0670 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Tue, 9 Nov 1999 18:07:50 +0000 Subject: [PATCH] Fixed memory functions. svn path=/trunk/; revision=761 --- reactos/lib/ntdll/rtl/mem.c | 6 ++++-- reactos/ntoskrnl/rtl/mem.c | 26 ++++++++++++++++++++++++-- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/reactos/lib/ntdll/rtl/mem.c b/reactos/lib/ntdll/rtl/mem.c index a0db8518375..03d9645c977 100644 --- a/reactos/lib/ntdll/rtl/mem.c +++ b/reactos/lib/ntdll/rtl/mem.c @@ -1,4 +1,4 @@ -/* $Id: mem.c,v 1.5 1999/10/31 22:39:41 ea Exp $ +/* $Id: mem.c,v 1.6 1999/11/09 18:07:50 ekohl Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -20,7 +20,9 @@ /* FUNCTIONS *****************************************************************/ -ULONG RtlCompareMemory(PVOID Source1, PVOID Source2, ULONG Length) +ULONG +STDCALL +RtlCompareMemory(PVOID Source1, PVOID Source2, ULONG Length) /* * FUNCTION: Compares blocks of memory and returns the number of equal bytes * ARGUMENTS: diff --git a/reactos/ntoskrnl/rtl/mem.c b/reactos/ntoskrnl/rtl/mem.c index de5e892a1df..986c48bf41b 100644 --- a/reactos/ntoskrnl/rtl/mem.c +++ b/reactos/ntoskrnl/rtl/mem.c @@ -1,4 +1,4 @@ -/* $Id: mem.c,v 1.5 1999/10/31 22:41:49 ea Exp $ +/* $Id: mem.c,v 1.6 1999/11/09 18:03:39 ekohl Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -20,7 +20,9 @@ /* FUNCTIONS *****************************************************************/ -ULONG RtlCompareMemory(PVOID Source1, PVOID Source2, ULONG Length) +ULONG +STDCALL +RtlCompareMemory(PVOID Source1, PVOID Source2, ULONG Length) /* * FUNCTION: Compares blocks of memory and returns the number of equal bytes * ARGUMENTS: @@ -70,6 +72,26 @@ RtlFillMemory ( } +VOID +STDCALL +RtlFillMemoryUlong ( + PVOID Destination, + ULONG Length, + ULONG Fill + ) +{ + PULONG Dest = Destination; + ULONG Count = Length / 4; + + while (Count > 0) + { + *Dest = Fill; + Dest++; + Count--; + } +} + + VOID STDCALL RtlZeroMemory (