mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
Fixed the check for the correct count of pagefiles.
svn path=/trunk/; revision=3979
This commit is contained in:
parent
aa18c0d5d4
commit
dfbf98b1b0
1 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: pagefile.c,v 1.27 2002/10/01 19:27:23 chorns Exp $
|
||||
/* $Id: pagefile.c,v 1.28 2003/01/11 15:49:33 hbirr Exp $
|
||||
*
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: ntoskrnl/mm/pagefile.c
|
||||
|
@ -136,7 +136,7 @@ NTSTATUS MmWriteToSwapPage(SWAPENTRY SwapEntry, PMDL Mdl)
|
|||
i = FILE_FROM_ENTRY(SwapEntry);
|
||||
offset = OFFSET_FROM_ENTRY(SwapEntry);
|
||||
|
||||
if (i > MAX_PAGING_FILES)
|
||||
if (i >= MAX_PAGING_FILES)
|
||||
{
|
||||
DPRINT1("Bad swap entry 0x%.8X\n", SwapEntry);
|
||||
KeBugCheck(0);
|
||||
|
@ -180,7 +180,7 @@ NTSTATUS MmReadFromSwapPage(SWAPENTRY SwapEntry, PMDL Mdl)
|
|||
i = FILE_FROM_ENTRY(SwapEntry);
|
||||
offset = OFFSET_FROM_ENTRY(SwapEntry);
|
||||
|
||||
if (i > MAX_PAGING_FILES)
|
||||
if (i >= MAX_PAGING_FILES)
|
||||
{
|
||||
DPRINT1("Bad swap entry 0x%.8X\n", SwapEntry);
|
||||
KeBugCheck(0);
|
||||
|
|
Loading…
Reference in a new issue