projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7cb8a5
)
[NTOSKRNL]
author
Cameron Gutman
<aicommander@gmail.com>
Fri, 30 Dec 2011 00:10:39 +0000
(
00:10
+0000)
committer
Cameron Gutman
<aicommander@gmail.com>
Fri, 30 Dec 2011 00:10:39 +0000
(
00:10
+0000)
- Fix the fix
svn path=/trunk/; revision=54783
reactos/ntoskrnl/mm/i386/page.c
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/mm/i386/page.c
b/reactos/ntoskrnl/mm/i386/page.c
index
329f858
..
a2ec088
100644
(file)
--- a/
reactos/ntoskrnl/mm/i386/page.c
+++ b/
reactos/ntoskrnl/mm/i386/page.c
@@
-529,7
+529,7
@@
MmDeletePageFileMapping(PEPROCESS Process, PVOID Address,
* are invalid translations, so the processor won't cache them */
MmUnmapPageTable(Pt);
- if (
Pte & PA_PRESENT
)
+ if (
(Pte & PA_PRESENT) || !(Pte & 0x800)
)
{
KeBugCheck(MEMORY_MANAGEMENT);
}
@@
-681,7
+681,7
@@
MmIsPageSwapEntry(PEPROCESS Process, PVOID Address)
{
ULONG Entry;
Entry = MmGetPageEntryForProcess(Process, Address);
- return !(Entry & PA_PRESENT) &&
Entry != 0
;
+ return !(Entry & PA_PRESENT) &&
(Entry & 0x800)
;
}
NTSTATUS