[ros-diffs] [tfaber] 56455: [RTL/NDK/DDK/XDK] - RtlDosSearchPath_Ustr returns NTSTATUS, not ULONG - Fix some ULONG vs SIZE_T issues - RtlEqualMemory returns LOGICAL, not ULONG

tfaber at svn.reactos.org tfaber at svn.reactos.org
Tue May 1 07:16:04 UTC 2012


Author: tfaber
Date: Tue May  1 07:16:02 2012
New Revision: 56455

URL: http://svn.reactos.org/svn/reactos?rev=56455&view=rev
Log:
[RTL/NDK/DDK/XDK]
- RtlDosSearchPath_Ustr returns NTSTATUS, not ULONG
- Fix some ULONG vs SIZE_T issues
- RtlEqualMemory returns LOGICAL, not ULONG

Modified:
    trunk/reactos/include/ddk/wdm.h
    trunk/reactos/include/ndk/rtlfuncs.h
    trunk/reactos/include/xdk/rtlfuncs.h
    trunk/reactos/lib/rtl/mem.c
    trunk/reactos/lib/rtl/path.c

Modified: trunk/reactos/include/ddk/wdm.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/wdm.h?rev=56455&r1=56454&r2=56455&view=diff
==============================================================================
--- trunk/reactos/include/ddk/wdm.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/wdm.h [iso-8859-1] Tue May  1 07:16:02 2012
@@ -8064,7 +8064,7 @@
 #define RtlEqualLuid(Luid1, Luid2) \
     (((Luid1)->LowPart == (Luid2)->LowPart) && ((Luid1)->HighPart == (Luid2)->HighPart))
 
-/* ULONG
+/* LOGICAL
  * RtlEqualMemory(
  *     IN VOID UNALIGNED *Destination,
  *     IN CONST VOID UNALIGNED *Source,

Modified: trunk/reactos/include/ndk/rtlfuncs.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/rtlfuncs.h?rev=56455&r1=56454&r2=56455&view=diff
==============================================================================
--- trunk/reactos/include/ndk/rtlfuncs.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/rtlfuncs.h [iso-8859-1] Tue May  1 07:16:02 2012
@@ -2516,7 +2516,8 @@
     OUT PWSTR *PartName
 );
 
-ULONG
+NTSYSAPI
+NTSTATUS
 NTAPI
 RtlDosSearchPath_Ustr(
     IN ULONG Flags,

Modified: trunk/reactos/include/xdk/rtlfuncs.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/xdk/rtlfuncs.h?rev=56455&r1=56454&r2=56455&view=diff
==============================================================================
--- trunk/reactos/include/xdk/rtlfuncs.h [iso-8859-1] (original)
+++ trunk/reactos/include/xdk/rtlfuncs.h [iso-8859-1] Tue May  1 07:16:02 2012
@@ -178,7 +178,7 @@
 #define RtlEqualLuid(Luid1, Luid2) \
     (((Luid1)->LowPart == (Luid2)->LowPart) && ((Luid1)->HighPart == (Luid2)->HighPart))
 
-/* ULONG
+/* LOGICAL
  * RtlEqualMemory(
  *     IN VOID UNALIGNED *Destination,
  *     IN CONST VOID UNALIGNED *Source,

Modified: trunk/reactos/lib/rtl/mem.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/mem.c?rev=56455&r1=56454&r2=56455&view=diff
==============================================================================
--- trunk/reactos/lib/rtl/mem.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/mem.c [iso-8859-1] Tue May  1 07:16:02 2012
@@ -85,7 +85,7 @@
 NTAPI
 RtlFillMemory (
    PVOID Destination,
-   ULONG Length,
+   SIZE_T Length,
    UCHAR Fill
 )
 {
@@ -101,12 +101,12 @@
 NTAPI
 RtlFillMemoryUlong (
    PVOID Destination,
-   ULONG Length,
+   SIZE_T Length,
    ULONG Fill
 )
 {
    PULONG Dest  = Destination;
-   ULONG  Count = Length / sizeof(ULONG);
+   SIZE_T Count = Length / sizeof(ULONG);
 
    while (Count > 0)
    {
@@ -126,7 +126,7 @@
 RtlMoveMemory (
    PVOID    Destination,
    CONST VOID  * Source,
-   ULONG    Length
+   SIZE_T   Length
 )
 {
    memmove (
@@ -160,7 +160,7 @@
 NTAPI
 RtlZeroMemory (
    PVOID Destination,
-   ULONG Length
+   SIZE_T Length
 )
 {
    RtlFillMemory (

Modified: trunk/reactos/lib/rtl/path.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/path.c?rev=56455&r1=56454&r2=56455&view=diff
==============================================================================
--- trunk/reactos/lib/rtl/path.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/path.c [iso-8859-1] Tue May  1 07:16:02 2012
@@ -2011,7 +2011,7 @@
 /*
  * @implemented
  */
-ULONG
+NTSTATUS
 NTAPI
 RtlDosSearchPath_Ustr(IN ULONG Flags,
                       IN PUNICODE_STRING PathString,




More information about the Ros-diffs mailing list