mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 08:51:29 +00:00
[NTOS:MM] Add debug print to MiAllocateContiguousMemory in out-of-memory case
This commit is contained in:
parent
0c64ffd3ab
commit
9bf672d4f1
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue