Author: fireball
Date: Tue Oct 30 21:41:34 2007
New Revision: 29982
URL:
http://svn.reactos.org/svn/reactos?rev=29982&view=rev
Log:
- Fix incorrect size calculation.
Modified:
trunk/reactos/tools/mkhive/cmi.c
Modified: trunk/reactos/tools/mkhive/cmi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/mkhive/cmi.c?rev=299…
==============================================================================
--- trunk/reactos/tools/mkhive/cmi.c (original)
+++ trunk/reactos/tools/mkhive/cmi.c Tue Oct 30 21:41:34 2007
@@ -201,7 +201,7 @@
Status = STATUS_SUCCESS;
*HashBlock = NULL;
- NewHashSize = sizeof(CM_KEY_FAST_INDEX) +
+ NewHashSize = FIELD_OFFSET(CM_KEY_FAST_INDEX, List) +
(SubKeyCount * sizeof(CM_INDEX));
*HBOffset = HvAllocateCell(&RegistryHive->Hive, NewHashSize, Storage,
HCELL_NIL);