diff --git a/ntoskrnl/mm/i386/page.c b/ntoskrnl/mm/i386/page.c index e0f7a304c8b..df13cb013e2 100644 --- a/ntoskrnl/mm/i386/page.c +++ b/ntoskrnl/mm/i386/page.c @@ -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); }