[NTOSKRNL]

Fix wrong sizeof usage with performance counters

svn path=/trunk/; revision=56073
This commit is contained in:
Pierre Schweitzer
2012-03-07 07:38:31 +00:00
parent 0f6c290bfa
commit 034c8a3379
+1 -1
View File
@@ -2170,7 +2170,7 @@ ExFreePoolWithTag(IN PVOID P,
// Update performance counters
//
InterlockedIncrement((PLONG)&PoolDesc->RunningDeAllocs);
InterlockedExchangeAddSizeT(&PoolDesc->TotalBytes, -BlockSize * sizeof(POOL_BLOCK_SIZE));
InterlockedExchangeAddSizeT(&PoolDesc->TotalBytes, -BlockSize * POOL_BLOCK_SIZE);
//
// Acquire the pool lock