[ros-diffs] [arty] 28343: Fix size of handle count database. We really didn't want to change the size we remembered for the old one, and the newly computed size was wacky too. We just want to add 4 to i and 4 * entry size to the size. This was found by Wax.

arty at svn.reactos.org arty at svn.reactos.org
Wed Aug 15 07:30:33 CEST 2007


Author: arty
Date: Wed Aug 15 09:30:32 2007
New Revision: 28343

URL: http://svn.reactos.org/svn/reactos?rev=28343&view=rev
Log:
Fix size of handle count database.  We really didn't want to change the size
we remembered for the old one, and the newly computed size was wacky too.
We just want to add 4 to i and 4 * entry size to the size.

This was found by Wax.

Modified:
    trunk/reactos/ntoskrnl/ob/obhandle.c

Modified: trunk/reactos/ntoskrnl/ob/obhandle.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ob/obhandle.c?rev=28343&r1=28342&r2=28343&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/ob/obhandle.c (original)
+++ trunk/reactos/ntoskrnl/ob/obhandle.c Wed Aug 15 09:30:32 2007
@@ -261,7 +261,7 @@
 
         /* Add 4 more entries */
         i += 4;
-        Size = OldSize += ((i - 1) * sizeof(OBJECT_HANDLE_COUNT_ENTRY));
+        Size = OldSize + (4 * sizeof(OBJECT_HANDLE_COUNT_ENTRY));
     }
 
     /* Allocate the DB */




More information about the Ros-diffs mailing list