Author: tfaber
Date: Thu Oct 24 19:33:17 2013
New Revision: 60743
URL:
http://svn.reactos.org/svn/reactos?rev=60743&view=rev
Log:
[KMTESTS:EX]
- Fix incorrect sizeof usage. CID 1102449, 1102451
Modified:
trunk/rostests/kmtests/ntos_ex/ExPools.c
trunk/rostests/kmtests/ntos_ex/ExSingleList.c
Modified: trunk/rostests/kmtests/ntos_ex/ExPools.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/kmtests/ntos_ex/ExPools.c…
==============================================================================
--- trunk/rostests/kmtests/ntos_ex/ExPools.c [iso-8859-1] (original)
+++ trunk/rostests/kmtests/ntos_ex/ExPools.c [iso-8859-1] Thu Oct 24 19:33:17 2013
@@ -90,7 +90,7 @@
// 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++)
Modified: trunk/rostests/kmtests/ntos_ex/ExSingleList.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/kmtests/ntos_ex/ExSingleL…
==============================================================================
--- trunk/rostests/kmtests/ntos_ex/ExSingleList.c [iso-8859-1] (original)
+++ trunk/rostests/kmtests/ntos_ex/ExSingleList.c [iso-8859-1] Thu Oct 24 19:33:17 2013
@@ -97,15 +97,15 @@
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);