[NTOS/MM]

- Arch striking again : take everywhere into account the +1 offset introduced in r72988
CORE-12047

svn path=/trunk/; revision=73029
This commit is contained in:
Jérôme Gardou 2016-10-23 18:59:42 +00:00
parent 1ef056a0ed
commit 04442ae74c

View file

@ -239,7 +239,7 @@ MmWriteToSwapPage(SWAPENTRY SwapEntry, PFN_NUMBER Page)
}
i = FILE_FROM_ENTRY(SwapEntry);
offset = OFFSET_FROM_ENTRY(SwapEntry);
offset = OFFSET_FROM_ENTRY(SwapEntry) - 1;
if (PagingFileList[i]->FileObject == NULL ||
PagingFileList[i]->FileObject->DeviceObject == NULL)
@ -396,7 +396,7 @@ MmFreeSwapPage(SWAPENTRY Entry)
KIRQL oldIrql;
i = FILE_FROM_ENTRY(Entry);
off = OFFSET_FROM_ENTRY(Entry);
off = OFFSET_FROM_ENTRY(Entry) - 1;
KeAcquireSpinLock(&PagingFileListLock, &oldIrql);
if (PagingFileList[i] == NULL)