mirror of
https://github.com/reactos/reactos.git
synced 2025-05-29 22:18:13 +00:00
[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:
parent
1ef056a0ed
commit
04442ae74c
1 changed files with 2 additions and 2 deletions
|
@ -239,7 +239,7 @@ MmWriteToSwapPage(SWAPENTRY SwapEntry, PFN_NUMBER Page)
|
||||||
}
|
}
|
||||||
|
|
||||||
i = FILE_FROM_ENTRY(SwapEntry);
|
i = FILE_FROM_ENTRY(SwapEntry);
|
||||||
offset = OFFSET_FROM_ENTRY(SwapEntry);
|
offset = OFFSET_FROM_ENTRY(SwapEntry) - 1;
|
||||||
|
|
||||||
if (PagingFileList[i]->FileObject == NULL ||
|
if (PagingFileList[i]->FileObject == NULL ||
|
||||||
PagingFileList[i]->FileObject->DeviceObject == NULL)
|
PagingFileList[i]->FileObject->DeviceObject == NULL)
|
||||||
|
@ -396,7 +396,7 @@ MmFreeSwapPage(SWAPENTRY Entry)
|
||||||
KIRQL oldIrql;
|
KIRQL oldIrql;
|
||||||
|
|
||||||
i = FILE_FROM_ENTRY(Entry);
|
i = FILE_FROM_ENTRY(Entry);
|
||||||
off = OFFSET_FROM_ENTRY(Entry);
|
off = OFFSET_FROM_ENTRY(Entry) - 1;
|
||||||
|
|
||||||
KeAcquireSpinLock(&PagingFileListLock, &oldIrql);
|
KeAcquireSpinLock(&PagingFileListLock, &oldIrql);
|
||||||
if (PagingFileList[i] == NULL)
|
if (PagingFileList[i] == NULL)
|
||||||
|
|
Loading…
Reference in a new issue