mirror of
https://github.com/reactos/reactos.git
synced 2024-09-29 05:54:05 +00:00
[NTOS/MM]
- Do not allocate zeroed pagefile entries for legacy Mm CORE-12047 svn path=/trunk/; revision=72988
This commit is contained in:
parent
72c8ed3670
commit
d46dd383f6
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue