Author: pschweitzer
Date: Wed Mar 7 07:38:31 2012
New Revision: 56073
URL:
http://svn.reactos.org/svn/reactos?rev=56073&view=rev
Log:
[NTOSKRNL]
Fix wrong sizeof usage with performance counters
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] Wed Mar 7 07:38:31 2012
@@ -2170,7 +2170,7 @@
// 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