mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 08:30:21 +00:00
[PSDK]
winnt.h: Improve Rtl*Memory defines, add missing RtlEqualMemory svn path=/trunk/; revision=66713
This commit is contained in:
parent
98f1285e6b
commit
f6ca509b09
3 changed files with 12 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue