[SDK:CMLIB] Use Hive->Allocate / Hive->Free where possible.

This commit is contained in:
Hermès Bélusca-Maïto 2022-03-27 18:44:53 +02:00
parent b79fbe2333
commit 6a03fb7099
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 6 additions and 10 deletions

View file

@ -194,7 +194,7 @@ CmpValueToData(IN PHHIVE Hive,
if (BufferAllocated)
{
/* Free the buffer and bugcheck */
CmpFree(Buffer, 0);
Hive->Free(Buffer, 0);
KeBugCheckEx(REGISTRY_ERROR, 8, 0, (ULONG_PTR)Hive, (ULONG_PTR)Value);
}