mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 08:54:40 +00:00
MiReserveSystemPtes: Don't assert that allocation succeeded, just warn if we failed. All callers of the function handle allocation failure properly.
svn path=/trunk/; revision=43334
This commit is contained in:
parent
c64b032e93
commit
60a2ad65bb
|
@ -175,7 +175,21 @@ MiReserveSystemPtes(IN ULONG NumberOfPtes,
|
|||
// Use the extended function
|
||||
//
|
||||
PointerPte = MiReserveAlignedSystemPtes(NumberOfPtes, SystemPtePoolType, 0);
|
||||
ASSERT(PointerPte != NULL);
|
||||
|
||||
//
|
||||
// Check if allocation failed
|
||||
//
|
||||
if (!PointerPte)
|
||||
{
|
||||
//
|
||||
// Warn that we are out of memory
|
||||
//
|
||||
DPRINT1("MiReserveSystemPtes: Failed to reserve %lu PTE(s)!\n", NumberOfPtes);
|
||||
}
|
||||
|
||||
//
|
||||
// Return the PTE Pointer
|
||||
//
|
||||
return PointerPte;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue