mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 10:28:45 +00:00
[KMTESTS:EX]
- Fix incorrect sizeof usage. CID 1102449, 1102451 svn path=/trunk/; revision=60743
This commit is contained in:
parent
e02f9e1406
commit
5bb77216c8
2 changed files with 4 additions and 4 deletions
|
@ -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++)
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue