Raise exception when MmMapLockedPagesSpecifyCache fails to map into
UserMode.
Modified: trunk/reactos/ntoskrnl/mm/mdl.c
_____
Modified: trunk/reactos/ntoskrnl/mm/mdl.c
--- trunk/reactos/ntoskrnl/mm/mdl.c 2005-02-05 18:52:38 UTC (rev
13424)
+++ trunk/reactos/ntoskrnl/mm/mdl.c 2005-02-05 18:59:14 UTC (rev
13425)
@@ -862,8 +862,9 @@
}
if (AccessMode == UserMode)
{
- /* FIXME: Raise an exception */
- return NULL;
+ /* Throw exception */
+ ExRaiseStatus(STATUS_ACCESS_VIOLATION);
+ ASSERT(0);
}
else /* AccessMode == KernelMode */
{
@@ -888,6 +889,8 @@
}
Mdl->MappedSystemVa = (char*)Base + Mdl->ByteOffset;
}
+ else
+ DPRINT1("UserMode mapping - returning 0x%x\n", (ULONG)Base +
Mdl->ByteOffset);
return((char*)Base + Mdl->ByteOffset);
}