[RTL/NDK/DDK/XDK]

- RtlDosSearchPath_Ustr returns NTSTATUS, not ULONG
- Fix some ULONG vs SIZE_T issues
- RtlEqualMemory returns LOGICAL, not ULONG

svn path=/trunk/; revision=56455
This commit is contained in:
Thomas Faber 2012-05-01 07:16:02 +00:00
parent 0d6f712756
commit 67d9295a2d
5 changed files with 10 additions and 9 deletions

View file

@ -8064,7 +8064,7 @@ RtlCopyMemoryNonTemporal(
#define RtlEqualLuid(Luid1, Luid2) \ #define RtlEqualLuid(Luid1, Luid2) \
(((Luid1)->LowPart == (Luid2)->LowPart) && ((Luid1)->HighPart == (Luid2)->HighPart)) (((Luid1)->LowPart == (Luid2)->LowPart) && ((Luid1)->HighPart == (Luid2)->HighPart))
/* ULONG /* LOGICAL
* RtlEqualMemory( * RtlEqualMemory(
* IN VOID UNALIGNED *Destination, * IN VOID UNALIGNED *Destination,
* IN CONST VOID UNALIGNED *Source, * IN CONST VOID UNALIGNED *Source,

View file

@ -2516,7 +2516,8 @@ RtlDosSearchPath_U(
OUT PWSTR *PartName OUT PWSTR *PartName
); );
ULONG NTSYSAPI
NTSTATUS
NTAPI NTAPI
RtlDosSearchPath_Ustr( RtlDosSearchPath_Ustr(
IN ULONG Flags, IN ULONG Flags,

View file

@ -178,7 +178,7 @@ RtlCopyMemoryNonTemporal(
#define RtlEqualLuid(Luid1, Luid2) \ #define RtlEqualLuid(Luid1, Luid2) \
(((Luid1)->LowPart == (Luid2)->LowPart) && ((Luid1)->HighPart == (Luid2)->HighPart)) (((Luid1)->LowPart == (Luid2)->LowPart) && ((Luid1)->HighPart == (Luid2)->HighPart))
/* ULONG /* LOGICAL
* RtlEqualMemory( * RtlEqualMemory(
* IN VOID UNALIGNED *Destination, * IN VOID UNALIGNED *Destination,
* IN CONST VOID UNALIGNED *Source, * IN CONST VOID UNALIGNED *Source,

View file

@ -85,7 +85,7 @@ VOID
NTAPI NTAPI
RtlFillMemory ( RtlFillMemory (
PVOID Destination, PVOID Destination,
ULONG Length, SIZE_T Length,
UCHAR Fill UCHAR Fill
) )
{ {
@ -101,12 +101,12 @@ VOID
NTAPI NTAPI
RtlFillMemoryUlong ( RtlFillMemoryUlong (
PVOID Destination, PVOID Destination,
ULONG Length, SIZE_T Length,
ULONG Fill ULONG Fill
) )
{ {
PULONG Dest = Destination; PULONG Dest = Destination;
ULONG Count = Length / sizeof(ULONG); SIZE_T Count = Length / sizeof(ULONG);
while (Count > 0) while (Count > 0)
{ {
@ -126,7 +126,7 @@ NTAPI
RtlMoveMemory ( RtlMoveMemory (
PVOID Destination, PVOID Destination,
CONST VOID * Source, CONST VOID * Source,
ULONG Length SIZE_T Length
) )
{ {
memmove ( memmove (
@ -160,7 +160,7 @@ VOID
NTAPI NTAPI
RtlZeroMemory ( RtlZeroMemory (
PVOID Destination, PVOID Destination,
ULONG Length SIZE_T Length
) )
{ {
RtlFillMemory ( RtlFillMemory (

View file

@ -2011,7 +2011,7 @@ Quickie:
/* /*
* @implemented * @implemented
*/ */
ULONG NTSTATUS
NTAPI NTAPI
RtlDosSearchPath_Ustr(IN ULONG Flags, RtlDosSearchPath_Ustr(IN ULONG Flags,
IN PUNICODE_STRING PathString, IN PUNICODE_STRING PathString,