-RtlCompareMemory(): reactos implementation is buggy (reason included)
authorshort <>
Thu, 24 Apr 2003 10:23:52 +0000 (10:23 +0000)
committershort <>
Thu, 24 Apr 2003 10:23:52 +0000 (10:23 +0000)
ntoskrnl/rtl/mem.c

index e046b7f..eae3c94 100644 (file)
@@ -63,8 +63,12 @@ MmCopyFromCaller(PVOID Dest, PVOID Src, ULONG NumberOfBytes)
     }
 }
 
-#endif /* LIBCAPTIVE */
 
+/* FIXME: It should return the length of initial sequence of matching characters,
+ * not the total amount of matching/differing bytes. We are not interested in
+ * the tail after the first non-matching byte.
+ * W32 doc formulation is a bit misleading.
+ */
 ULONG
 STDCALL
 RtlCompareMemory(PVOID Source1,
@@ -91,7 +95,6 @@ RtlCompareMemory(PVOID        Source1,
    return(total);
 }
 
-#ifndef LIBCAPTIVE
 
 ULONG
 STDCALL