https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b0dfe20981065793244a2…
commit b0dfe20981065793244a2b8bb6787b441098e715
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Fri Jul 30 18:54:30 2021 +0200
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Fri Jul 30 18:54:54 2021 +0200
[NTOS:MM] Fix MiIsUserPte inline
---
ntoskrnl/mm/ARM3/miarm.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ntoskrnl/mm/ARM3/miarm.h b/ntoskrnl/mm/ARM3/miarm.h
index 6d2f2753bb5..b5fd1de3409 100644
--- a/ntoskrnl/mm/ARM3/miarm.h
+++ b/ntoskrnl/mm/ARM3/miarm.h
@@ -729,7 +729,7 @@ FORCEINLINE
BOOLEAN
MiIsUserPte(PVOID Address)
{
- return (Address <= (PVOID)MiHighestUserPte);
+ return (Address >= (PVOID)PTE_BASE) && (Address <=
(PVOID)MiHighestUserPte);
}
#endif