[DINPUT_WINETEST]
[reactos.git] / rostests / kmtests / rtl / RtlMemory.c
index c33f056..1f5bfa1 100644 (file)
@@ -2,7 +2,7 @@
  * PROJECT:         ReactOS kernel-mode tests
  * LICENSE:         GPLv2+ - See COPYING in the top level directory
  * PURPOSE:         Kernel-Mode Test Suite Runtime library memory functions test
- * PROGRAMMER:      Thomas Faber <thfabba@gmx.de>
+ * PROGRAMMER:      Thomas Faber <thomas.faber@reactos.org>
  */
 
 #include <stddef.h>
@@ -160,7 +160,7 @@ START_TEST(RtlMemory)
     const SIZE_T HalfSize = Size / 2;
     SIZE_T RetSize;
     KIRQL Irql;
-    ULONG i;
+    SIZE_T i;
 
     KeRaiseIrql(HIGH_LEVEL, &Irql);
     /* zero everything behind 'Size'. Tests will check that this wasn't changed.
@@ -316,7 +316,7 @@ START_TEST(RtlMemory)
     KeRaiseIrql(HIGH_LEVEL, &Irql);
 
     /* RtlCompareMemoryUlong */
-    MakeBuffer(Buffer, 8, 0x55, Size - 4, 0, 0);
+    MakeBuffer(Buffer, 8, 0x55, Size - 8, 0, 0);
     RetSize = RtlCompareMemoryUlong(Buffer, sizeof(ULONG), 0x55555555LU);
     ok_eq_size(RetSize, 4);
     RetSize = RtlCompareMemoryUlong(Buffer + 1, sizeof(ULONG), 0x55555555LU);