mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +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:
@@ -170,12 +170,26 @@ MiReserveSystemPtes(IN ULONG NumberOfPtes,
|
||||
IN MMSYSTEM_PTE_POOL_TYPE SystemPtePoolType)
|
||||
{
|
||||
PMMPTE PointerPte;
|
||||
|
||||
|
||||
//
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user