[NTOS/MM]

- Do not allocate zeroed pagefile entries for legacy Mm
CORE-12047

svn path=/trunk/; revision=72988
This commit is contained in:
Jérôme Gardou 2016-10-18 19:55:22 +00:00
parent 72c8ed3670
commit d46dd383f6

View file

@ -279,7 +279,7 @@ NTSTATUS
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 @@ MmAllocSwapPage(VOID)
MiFreeSwapPages--;
KeReleaseSpinLock(&PagingFileListLock, oldIrql);
entry = ENTRY_FROM_FILE_OFFSET(i, off);
entry = ENTRY_FROM_FILE_OFFSET(i, off + 1);
return(entry);
}
}