Author: jgardou
Date: Sun Oct 23 18:59:42 2016
New Revision: 73029
URL:
http://svn.reactos.org/svn/reactos?rev=73029&view=rev
Log:
[NTOS/MM]
- Arch striking again : take everywhere into account the +1 offset introduced in r72988
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] Sun Oct 23 18:59:42 2016
@@ -239,7 +239,7 @@
}
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 @@
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)