mirror of
https://github.com/reactos/reactos.git
synced 2025-07-28 03:52:17 +00:00
[SDK][CMLIB] Properly check for failure if hive free list creation fails
HvpCreateHiveFreeCellList returns a NTSTATUS code yet the way the code path checks checks for failure is just wrong. This was spotted whilst working on #4571 PR.
This commit is contained in:
parent
afbc446ec7
commit
bfe06cbfca
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,7 @@ HvpInitializeMemoryHive(
|
||||||
BlockIndex += Bin->Size / HBLOCK_SIZE;
|
BlockIndex += Bin->Size / HBLOCK_SIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (HvpCreateHiveFreeCellList(Hive))
|
if (!NT_SUCCESS(HvpCreateHiveFreeCellList(Hive)))
|
||||||
{
|
{
|
||||||
HvpFreeHiveBins(Hive);
|
HvpFreeHiveBins(Hive);
|
||||||
Hive->Free(Hive->BaseBlock, Hive->BaseBlockAlloc);
|
Hive->Free(Hive->BaseBlock, Hive->BaseBlockAlloc);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue