mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
[NTOS:MM] Simplify a check
This commit is contained in:
parent
b7eb0fddf3
commit
14077e3f4e
1 changed files with 1 additions and 1 deletions
2
ntoskrnl/cache/section/sptab.c
vendored
2
ntoskrnl/cache/section/sptab.c
vendored
|
@ -225,7 +225,7 @@ _MmSetPageEntrySectionSegment(PMM_SECTION_SEGMENT Segment,
|
|||
MmSetSectionAssociation(PFN_FROM_SSE(Entry), Segment, Offset);
|
||||
InterlockedIncrement64(Segment->ReferenceCount);
|
||||
|
||||
if ((Offset->QuadPart > (Segment->LastPage << PAGE_SHIFT)) || !Segment->LastPage)
|
||||
if (Offset->QuadPart >= (Segment->LastPage << PAGE_SHIFT))
|
||||
Segment->LastPage = (Offset->QuadPart >> PAGE_SHIFT) + 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue