[KMTESTS:EX]

- Fix incorrect sizeof usage. CID 1102449, 1102451

svn path=/trunk/; revision=60743
This commit is contained in:
Thomas Faber 2013-10-24 19:33:17 +00:00
parent e02f9e1406
commit 5bb77216c8
2 changed files with 4 additions and 4 deletions

View 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++)

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