[ros-diffs] [pschweitzer] 56073: [NTOSKRNL] Fix wrong sizeof usage with performance counters

pschweitzer at svn.reactos.org pschweitzer at svn.reactos.org
Wed Mar 7 07:38:32 UTC 2012


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?rev=56073&r1=56072&r2=56073&view=diff
==============================================================================
--- 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




More information about the Ros-diffs mailing list