mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 06:26:00 +00:00
[NTOS/Mm] Fix SWAPENTRY bit-check in MmCreatePageFileMapping
Test for the highest bit, not for bit 3 / 7.
This commit is contained in:
parent
058b746bbe
commit
03283371c1
1 changed files with 1 additions and 1 deletions
|
@ -598,7 +598,7 @@ MmCreatePageFileMapping(PEPROCESS Process,
|
|||
/* And we don't support creating for other process */
|
||||
ASSERT(Process == PsGetCurrentProcess());
|
||||
|
||||
if (SwapEntry & (1 << (sizeof(SWAPENTRY) - 1)))
|
||||
if (SwapEntry & ((ULONG_PTR)1 << (RTL_BITS_OF(SWAPENTRY) - 1)))
|
||||
{
|
||||
KeBugCheck(MEMORY_MANAGEMENT);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue