diff --git a/reactos/include/ndk/rtlfuncs.h b/reactos/include/ndk/rtlfuncs.h index b38a982197a..8e7b755b44c 100644 --- a/reactos/include/ndk/rtlfuncs.h +++ b/reactos/include/ndk/rtlfuncs.h @@ -2084,8 +2084,10 @@ RtlCompareMemoryUlong( _In_ ULONG Pattern ); +#ifndef RtlEqualMemory #define RtlEqualMemory(Destination, Source, Length) \ (!memcmp(Destination, Source, Length)) +#endif #define RtlCopyBytes RtlCopyMemory #define RtlFillBytes RtlFillMemory diff --git a/reactos/include/psdk/winnt.h b/reactos/include/psdk/winnt.h index 4b9e332753f..0e7497bc860 100644 --- a/reactos/include/psdk/winnt.h +++ b/reactos/include/psdk/winnt.h @@ -5861,10 +5861,11 @@ RtlCompareMemory ( _In_ const VOID *Source2, _In_ SIZE_T Length); -#define RtlMoveMemory memmove -#define RtlCopyMemory memcpy -#define RtlFillMemory(d,l,f) memset((d), (f), (l)) -#define RtlZeroMemory(d,l) RtlFillMemory((d),(l),0) +#define RtlMoveMemory(Dest,Source,Length) memmove((Dest),(Source),(Length)) +#define RtlCopyMemory(Dest,Source,Length) memcpy((Dest),(Source),(Length)) +#define RtlFillMemory(Dest,Length,Fill) memset((Dest),(Fill),(Length)) +#define RtlZeroMemory(Dest,Length) RtlFillMemory((Dest),(Length),0) +#define RtlEqualMemory(Dest,Source,Length) (!memcmp((Dest),(Source),(Length))) FORCEINLINE PVOID diff --git a/reactos/include/xdk/winnt_old.h b/reactos/include/xdk/winnt_old.h index 7bc4d3c6857..e3402213a85 100644 --- a/reactos/include/xdk/winnt_old.h +++ b/reactos/include/xdk/winnt_old.h @@ -4506,10 +4506,11 @@ RtlCompareMemory ( _In_ const VOID *Source2, _In_ SIZE_T Length); -#define RtlMoveMemory memmove -#define RtlCopyMemory memcpy -#define RtlFillMemory(d,l,f) memset((d), (f), (l)) -#define RtlZeroMemory(d,l) RtlFillMemory((d),(l),0) +#define RtlMoveMemory(Dest,Source,Length) memmove((Dest),(Source),(Length)) +#define RtlCopyMemory(Dest,Source,Length) memcpy((Dest),(Source),(Length)) +#define RtlFillMemory(Dest,Length,Fill) memset((Dest),(Fill),(Length)) +#define RtlZeroMemory(Dest,Length) RtlFillMemory((Dest),(Length),0) +#define RtlEqualMemory(Dest,Source,Length) (!memcmp((Dest),(Source),(Length))) FORCEINLINE PVOID