mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:05:49 +00:00
[NTOSKRNL]: CORE-6597 #resolve #time 5m #comment Fix incorrect double list increment
svn path=/trunk/; revision=57262
This commit is contained in:
parent
fd222f669a
commit
6b74931d7c
1 changed files with 1 additions and 1 deletions
|
@ -1583,6 +1583,7 @@ ExAllocatePoolWithTag(IN POOL_TYPE PoolType,
|
||||||
//
|
//
|
||||||
i = (USHORT)((NumberOfBytes + sizeof(POOL_HEADER) + (POOL_BLOCK_SIZE - 1))
|
i = (USHORT)((NumberOfBytes + sizeof(POOL_HEADER) + (POOL_BLOCK_SIZE - 1))
|
||||||
/ POOL_BLOCK_SIZE);
|
/ POOL_BLOCK_SIZE);
|
||||||
|
ASSERT(i < POOL_LISTS_PER_PAGE);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Handle lookaside list optimization for both paged and nonpaged pool
|
// Handle lookaside list optimization for both paged and nonpaged pool
|
||||||
|
@ -1664,7 +1665,6 @@ ExAllocatePoolWithTag(IN POOL_TYPE PoolType,
|
||||||
// Try again!
|
// Try again!
|
||||||
//
|
//
|
||||||
ExUnlockPool(PoolDesc, OldIrql);
|
ExUnlockPool(PoolDesc, OldIrql);
|
||||||
ListHead++;
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue