mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[NTOSKRNL]
Do not ASSERT, when an unimplemented, yet legal flag (MEM_RESERVE) is passed to NtMapViewOfSection. Instead fail gracefully. svn path=/trunk/; revision=63395
This commit is contained in:
parent
4da2490a2d
commit
110e942a46
1 changed files with 7 additions and 1 deletions
|
@ -2655,9 +2655,15 @@ MmMapViewOfArm3Section(IN PVOID SectionObject,
|
|||
ASSERT(Section->u.Flags.Image == 0);
|
||||
ASSERT(Section->u.Flags.NoCache == 0);
|
||||
ASSERT(Section->u.Flags.WriteCombined == 0);
|
||||
ASSERT((AllocationType & MEM_RESERVE) == 0);
|
||||
ASSERT(ControlArea->u.Flags.PhysicalMemory == 0);
|
||||
|
||||
/* FIXME */
|
||||
if ((AllocationType & MEM_RESERVE) != 0)
|
||||
{
|
||||
DPRINT1("MmMapViewOfArm3Section called with MEM_RESERVE, this is not implemented yet!!!\n");
|
||||
return STATUS_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
/* Check if the mapping protection is compatible with the create */
|
||||
if (!MiIsProtectionCompatible(Section->InitialPageProtection, Protect))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue