mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:42:56 +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
1 changed files with 2 additions and 2 deletions
|
@ -279,7 +279,7 @@ NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
MmReadFromSwapPage(SWAPENTRY SwapEntry, PFN_NUMBER Page)
|
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
|
NTSTATUS
|
||||||
|
@ -450,7 +450,7 @@ MmAllocSwapPage(VOID)
|
||||||
MiFreeSwapPages--;
|
MiFreeSwapPages--;
|
||||||
KeReleaseSpinLock(&PagingFileListLock, oldIrql);
|
KeReleaseSpinLock(&PagingFileListLock, oldIrql);
|
||||||
|
|
||||||
entry = ENTRY_FROM_FILE_OFFSET(i, off);
|
entry = ENTRY_FROM_FILE_OFFSET(i, off + 1);
|
||||||
return(entry);
|
return(entry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue