mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user