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.

svn path=/trunk/; revision=28343
This commit is contained in:
Art Yerkes
2007-08-15 05:30:32 +00:00
parent 9b8fc0d903
commit b8921e7fad
+1 -1
View File
@@ -261,7 +261,7 @@ ObpInsertHandleCount(IN POBJECT_HEADER ObjectHeader)
/* 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 */