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…
==============================================================================
--- 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 */