Author: jgardou
Date: Tue Oct 18 19:55:22 2016
New Revision: 72988
URL:
http://svn.reactos.org/svn/reactos?rev=72988&view=rev
Log:
[NTOS/MM]
- Do not allocate zeroed pagefile entries for legacy Mm
CORE-12047
Modified:
trunk/reactos/ntoskrnl/mm/pagefile.c
Modified: trunk/reactos/ntoskrnl/mm/pagefile.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/pagefile.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/pagefile.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/pagefile.c [iso-8859-1] Tue Oct 18 19:55:22 2016
@@ -279,7 +279,7 @@
NTAPI
MmReadFromSwapPage(SWAPENTRY SwapEntry, PFN_NUMBER Page)
{
- return MiReadPageFile(Page, FILE_FROM_ENTRY(SwapEntry),
OFFSET_FROM_ENTRY(SwapEntry));
+ return MiReadPageFile(Page, FILE_FROM_ENTRY(SwapEntry), OFFSET_FROM_ENTRY(SwapEntry)
- 1);
}
NTSTATUS
@@ -450,7 +450,7 @@
MiFreeSwapPages--;
KeReleaseSpinLock(&PagingFileListLock, oldIrql);
- entry = ENTRY_FROM_FILE_OFFSET(i, off);
+ entry = ENTRY_FROM_FILE_OFFSET(i, off + 1);
return(entry);
}
}