From 15756dddcdaae165693832e713551c1ae049a00f Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Tue, 30 Oct 2007 18:41:34 +0000 Subject: [PATCH] - Fix incorrect size calculation. svn path=/trunk/; revision=29982 --- reactos/tools/mkhive/cmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/tools/mkhive/cmi.c b/reactos/tools/mkhive/cmi.c index 185d383c20e..27313778a6d 100644 --- a/reactos/tools/mkhive/cmi.c +++ b/reactos/tools/mkhive/cmi.c @@ -201,7 +201,7 @@ CmiAllocateHashTableCell ( 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);