mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:52:54 +00:00
- Fix incorrect size calculation.
svn path=/trunk/; revision=29982
This commit is contained in:
parent
3b7c69f9c9
commit
15756dddcd
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ CmiAllocateHashTableCell (
|
||||||
|
|
||||||
Status = STATUS_SUCCESS;
|
Status = STATUS_SUCCESS;
|
||||||
*HashBlock = NULL;
|
*HashBlock = NULL;
|
||||||
NewHashSize = sizeof(CM_KEY_FAST_INDEX) +
|
NewHashSize = FIELD_OFFSET(CM_KEY_FAST_INDEX, List) +
|
||||||
(SubKeyCount * sizeof(CM_INDEX));
|
(SubKeyCount * sizeof(CM_INDEX));
|
||||||
*HBOffset = HvAllocateCell(&RegistryHive->Hive, NewHashSize, Storage, HCELL_NIL);
|
*HBOffset = HvAllocateCell(&RegistryHive->Hive, NewHashSize, Storage, HCELL_NIL);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue