mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 18:01:07 +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
|
// Otherwise, we'll go try to find some
|
||||||
//
|
//
|
||||||
return MiFindContiguousMemory(LowestAcceptablePfn,
|
BaseAddress = MiFindContiguousMemory(LowestAcceptablePfn,
|
||||||
HighestAcceptablePfn,
|
HighestAcceptablePfn,
|
||||||
BoundaryPfn,
|
BoundaryPfn,
|
||||||
SizeInPages,
|
SizeInPages,
|
||||||
CacheType);
|
CacheType);
|
||||||
|
if (!BaseAddress)
|
||||||
|
{
|
||||||
|
DPRINT1("Unable to allocate contiguous memory for %d bytes (%d pages), out of memory!\n", NumberOfBytes, SizeInPages);
|
||||||
|
}
|
||||||
|
return BaseAddress;
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
|
Loading…
Reference in a new issue