[FREELDR] FrLdrHeapCreate: Show the memory type in the ERR().

This commit is contained in:
Hermès Bélusca-Maïto 2024-03-10 16:35:25 +01:00
parent 9a707af2e3
commit 50e5f76212
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -71,6 +71,7 @@ FrLdrHeapCreate(
PHEAP_BLOCK Block;
SIZE_T Remaining;
USHORT PreviousSize;
TRACE("HeapCreate(MemoryType=%ld)\n", MemoryType);
/* Allocate some memory for the heap */
@ -78,7 +79,7 @@ FrLdrHeapCreate(
Heap = MmAllocateMemoryWithType(MaximumSize, MemoryType);
if (!Heap)
{
ERR("HEAP: Failed to allocate heap of size 0x%lx, Type\n",
ERR("HEAP: Failed to allocate heap of size 0x%lx, Type %lu\n",
MaximumSize, MemoryType);
return NULL;
}
@ -445,6 +446,7 @@ FrLdrHeapFreeEx(
#if DBG && !defined(_M_ARM)
ULONGLONG Time = __rdtsc();
#endif
TRACE("HeapFree(%p, %p)\n", HeapHandle, Pointer);
ASSERT(Tag != 'dnE#');