From 5bb77216c88c0b5d37c73d6d99e2171994cc255b Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Thu, 24 Oct 2013 19:33:17 +0000 Subject: [PATCH] [KMTESTS:EX] - Fix incorrect sizeof usage. CID 1102449, 1102451 svn path=/trunk/; revision=60743 --- rostests/kmtests/ntos_ex/ExPools.c | 2 +- rostests/kmtests/ntos_ex/ExSingleList.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rostests/kmtests/ntos_ex/ExPools.c b/rostests/kmtests/ntos_ex/ExPools.c index a0010612ba2..9b67eeda82c 100644 --- a/rostests/kmtests/ntos_ex/ExPools.c +++ b/rostests/kmtests/ntos_ex/ExPools.c @@ -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; iNext = 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);