[NTOS:MM] Add debug print to MiAllocateContiguousMemory in out-of-memory case

This commit is contained in:
Stanislav Motylkov 2019-10-04 15:22:27 +03:00 committed by Timo Kreuzer
parent 0c64ffd3ab
commit 9bf672d4f1

View file

@ -444,11 +444,16 @@ MiAllocateContiguousMemory(IN SIZE_T NumberOfBytes,
//
// Otherwise, we'll go try to find some
//
return MiFindContiguousMemory(LowestAcceptablePfn,
HighestAcceptablePfn,
BoundaryPfn,
SizeInPages,
CacheType);
BaseAddress = MiFindContiguousMemory(LowestAcceptablePfn,
HighestAcceptablePfn,
BoundaryPfn,
SizeInPages,
CacheType);
if (!BaseAddress)
{
DPRINT1("Unable to allocate contiguous memory for %d bytes (%d pages), out of memory!\n", NumberOfBytes, SizeInPages);
}
return BaseAddress;
}
VOID