SearchName.Length = CmpCompressedNameSize(Node->Name,
Node->NameLength);
SearchName.MaximumLength = SearchName.Length;
- SearchName.Buffer = CmpAllocate(SearchName.Length,
- TRUE,
- TAG_CM);
+ SearchName.Buffer = Hive->Allocate(SearchName.Length, TRUE, TAG_CM);
if (!SearchName.Buffer)
{
/* Fail */
if (Child != HCELL_NIL)
{
/* We found it, free the name now */
- if (IsCompressed) CmpFree(SearchName.Buffer, 0);
+ if (IsCompressed) Hive->Free(SearchName.Buffer, 0);
/* Release the parent key */
HvReleaseCell(Hive, ParentKey);
if (CellToRelease != HCELL_NIL) HvReleaseCell(Hive, CellToRelease);
/* Free the search name and return failure */
- if (IsCompressed) CmpFree(SearchName.Buffer, 0);
+ if (IsCompressed) Hive->Free(SearchName.Buffer, 0);
return FALSE;
}
if (SearchName.MaximumLength > sizeof(Buffer))
{
/* Allocate one */
- SearchName.Buffer = CmpAllocate(SearchName.Length,
- TRUE,
- TAG_CM);
+ SearchName.Buffer = Hive->Allocate(SearchName.Length, TRUE, TAG_CM);
if (!SearchName.Buffer) return FALSE;
}
else
if ((IsCompressed) && (SearchName.MaximumLength > sizeof(Buffer)))
{
/* Free the buffer we allocated */
- CmpFree(SearchName.Buffer, 0);
+ Hive->Free(SearchName.Buffer, 0);
}
/* Return the result */