mirror of
https://github.com/reactos/reactos.git
synced 2024-08-08 04:08:29 +00:00
- Fix incorrect size calculation.
svn path=/trunk/; revision=29982
This commit is contained in:
parent
3b7c69f9c9
commit
15756dddcd
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue