Author: tfaber
Date: Sun Sep 15 23:05:59 2013
New Revision: 60156
URL:
http://svn.reactos.org/svn/reactos?rev=60156&view=rev
Log:
[NTOS:MM]
- Correctly use POOL_BLOCK_SIZE in ExAllocatePoolWithQuotaTag
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/expool.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/expool.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/expool.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/expool.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/expool.c [iso-8859-1] Sun Sep 15 23:05:59 2013
@@ -2536,7 +2536,7 @@
// this isn't the system process, which never gets charged quota
//
ASSERT(NumberOfBytes != 0);
- if ((NumberOfBytes <= (PAGE_SIZE - sizeof(POOL_BLOCK_SIZE) - sizeof(PVOID)))
&&
+ if ((NumberOfBytes <= (PAGE_SIZE - POOL_BLOCK_SIZE - sizeof(PVOID))) &&
(Process != PsInitialSystemProcess))
{
//
@@ -2589,7 +2589,7 @@
Entry = POOL_ENTRY(Buffer);
Status = PsChargeProcessPoolQuota(Process,
PoolType & BASE_POOL_TYPE_MASK,
- Entry->BlockSize *
sizeof(POOL_BLOCK_SIZE));
+ Entry->BlockSize * POOL_BLOCK_SIZE);
if (!NT_SUCCESS(Status))
{
//