[KMTESTS:EX]
authorThomas Faber <thomas.faber@reactos.org>
Thu, 24 Oct 2013 19:33:17 +0000 (19:33 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Thu, 24 Oct 2013 19:33:17 +0000 (19:33 +0000)
- Fix incorrect sizeof usage. CID 11024491102451

svn path=/trunk/; revision=60743

rostests/kmtests/ntos_ex/ExPools.c
rostests/kmtests/ntos_ex/ExSingleList.c

index a001061..9b67eed 100644 (file)
@@ -90,7 +90,7 @@ static VOID PoolsTest(VOID)
 
     // now test allocating lots of small/medium blocks
     AllocNumber = 100000;
-    Allocs = ExAllocatePoolWithTag(PagedPool, sizeof(Allocs) * AllocNumber, TAG_POOLTEST);
+    Allocs = ExAllocatePoolWithTag(PagedPool, sizeof(*Allocs) * AllocNumber, TAG_POOLTEST);
 
     // alloc blocks
     for (i=0; i<AllocNumber; i++)
index 7b70308..95671ef 100644 (file)
@@ -97,15 +97,15 @@ START_TEST(ExSingleList)
     Entries = (PVOID)&ListHead[1];
     KeRaiseIrql(HIGH_LEVEL, &Irql);
     
-    RtlFillMemory(Entries, sizeof Entries, 0x55);
+    RtlFillMemory(Entries, sizeof(*Entries), 0x55);
     ListHead->Next = NULL;
     TestListFunctional(ListHead, Entries, &SpinLock);
 
-    RtlFillMemory(Entries, sizeof Entries, 0x55);
+    RtlFillMemory(Entries, sizeof(*Entries), 0x55);
     ListHead->Next = NULL;
     TestListFunctionalExports(ListHead, Entries, &SpinLock);
     
-    RtlFillMemory(Entries, sizeof Entries, 0x55);
+    RtlFillMemory(Entries, sizeof(*Entries), 0x55);
     ListHead->Next = NULL;
     TestListFunctionalNoInterlocked(ListHead, Entries, &SpinLock);