mirror of
https://github.com/reactos/reactos.git
synced 2024-06-11 06:55:21 +00:00
[FREELDR] FrLdrHeapCreate: Show the memory type in the ERR().
This commit is contained in:
parent
9a707af2e3
commit
50e5f76212
|
@ -71,6 +71,7 @@ FrLdrHeapCreate(
|
||||||
PHEAP_BLOCK Block;
|
PHEAP_BLOCK Block;
|
||||||
SIZE_T Remaining;
|
SIZE_T Remaining;
|
||||||
USHORT PreviousSize;
|
USHORT PreviousSize;
|
||||||
|
|
||||||
TRACE("HeapCreate(MemoryType=%ld)\n", MemoryType);
|
TRACE("HeapCreate(MemoryType=%ld)\n", MemoryType);
|
||||||
|
|
||||||
/* Allocate some memory for the heap */
|
/* Allocate some memory for the heap */
|
||||||
|
@ -78,7 +79,7 @@ FrLdrHeapCreate(
|
||||||
Heap = MmAllocateMemoryWithType(MaximumSize, MemoryType);
|
Heap = MmAllocateMemoryWithType(MaximumSize, MemoryType);
|
||||||
if (!Heap)
|
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);
|
MaximumSize, MemoryType);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -445,6 +446,7 @@ FrLdrHeapFreeEx(
|
||||||
#if DBG && !defined(_M_ARM)
|
#if DBG && !defined(_M_ARM)
|
||||||
ULONGLONG Time = __rdtsc();
|
ULONGLONG Time = __rdtsc();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
TRACE("HeapFree(%p, %p)\n", HeapHandle, Pointer);
|
TRACE("HeapFree(%p, %p)\n", HeapHandle, Pointer);
|
||||||
ASSERT(Tag != 'dnE#');
|
ASSERT(Tag != 'dnE#');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue