[NTOS:MM] Fix MiIsUserPte inline

This commit is contained in:
Jérôme Gardou 2021-07-30 18:54:30 +02:00
parent 49cfac17c5
commit b0dfe20981

View file

@ -729,7 +729,7 @@ FORCEINLINE
BOOLEAN
MiIsUserPte(PVOID Address)
{
return (Address <= (PVOID)MiHighestUserPte);
return (Address >= (PVOID)PTE_BASE) && (Address <= (PVOID)MiHighestUserPte);
}
#endif