projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb884cc
)
Raise exception when MmMapLockedPagesSpecifyCache fails to map into UserMode.
author
Gregor Anich
<blight@blight.eu.org>
Sat, 5 Feb 2005 18:59:14 +0000
(18:59 +0000)
committer
Gregor Anich
<blight@blight.eu.org>
Sat, 5 Feb 2005 18:59:14 +0000
(18:59 +0000)
svn path=/trunk/; revision=13425
reactos/ntoskrnl/mm/mdl.c
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/mm/mdl.c
b/reactos/ntoskrnl/mm/mdl.c
index
4fe1928
..
e3d7c2a
100644
(file)
--- a/
reactos/ntoskrnl/mm/mdl.c
+++ b/
reactos/ntoskrnl/mm/mdl.c
@@
-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);
}