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);