mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Raise exception when MmMapLockedPagesSpecifyCache fails to map into UserMode.
svn path=/trunk/; revision=13425
This commit is contained in:
parent
cb884ccdb4
commit
75f792014d
1 changed files with 5 additions and 2 deletions
|
@ -862,8 +862,9 @@ MmMapLockedPagesSpecifyCache ( IN PMDL Mdl,
|
|||
}
|
||||
if (AccessMode == UserMode)
|
||||
{
|
||||
/* FIXME: Raise an exception */
|
||||
return NULL;
|
||||
/* Throw exception */
|
||||
ExRaiseStatus(STATUS_ACCESS_VIOLATION);
|
||||
ASSERT(0);
|
||||
}
|
||||
else /* AccessMode == KernelMode */
|
||||
{
|
||||
|
@ -888,6 +889,8 @@ MmMapLockedPagesSpecifyCache ( IN PMDL Mdl,
|
|||
}
|
||||
Mdl->MappedSystemVa = (char*)Base + Mdl->ByteOffset;
|
||||
}
|
||||
else
|
||||
DPRINT1("UserMode mapping - returning 0x%x\n", (ULONG)Base + Mdl->ByteOffset);
|
||||
|
||||
return((char*)Base + Mdl->ByteOffset);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue