mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Set the min size of an allocated block to the size of the free block header.
This fix the gditest bug. svn path=/trunk/; revision=2623
This commit is contained in:
parent
b90a7afc42
commit
40910fe910
1 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: ppool.c,v 1.6 2001/12/31 01:53:45 dwelch Exp $
|
/* $Id: ppool.c,v 1.7 2002/02/14 00:07:23 hbirr Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -87,6 +87,11 @@ ExAllocatePagedPoolWithTag (IN POOL_TYPE PoolType,
|
||||||
* Calculate the total number of bytes we will need.
|
* Calculate the total number of bytes we will need.
|
||||||
*/
|
*/
|
||||||
BlockSize = NumberOfBytes + sizeof(MM_PPOOL_USED_BLOCK_HEADER);
|
BlockSize = NumberOfBytes + sizeof(MM_PPOOL_USED_BLOCK_HEADER);
|
||||||
|
if (BlockSize < sizeof(MM_PPOOL_FREE_BLOCK_HEADER))
|
||||||
|
{
|
||||||
|
/* At least we need the size of the free block header. */
|
||||||
|
BlockSize = sizeof(MM_PPOOL_FREE_BLOCK_HEADER);
|
||||||
|
}
|
||||||
|
|
||||||
ExAcquireFastMutex(&MmPagedPoolLock);
|
ExAcquireFastMutex(&MmPagedPoolLock);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue