mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +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;
|
||||
}
|
||||
|
||||
if (HvpCreateHiveFreeCellList(Hive))
|
||||
if (!NT_SUCCESS(HvpCreateHiveFreeCellList(Hive)))
|
||||
{
|
||||
HvpFreeHiveBins(Hive);
|
||||
Hive->Free(Hive->BaseBlock, Hive->BaseBlockAlloc);
|
||||
|
|
Loading…
Reference in a new issue