mirror of
https://github.com/reactos/reactos.git
synced 2025-03-10 18:24:02 +00:00
- Fix a mistake in low memory pages allocation algorithm (commit-reviewers, where are you? :))
svn path=/trunk/; revision=24494
This commit is contained in:
parent
3dce4b0486
commit
20d422c02d
1 changed files with 1 additions and 1 deletions
|
@ -362,7 +362,7 @@ ULONG MmFindAvailablePages(PVOID PageLookupTable, ULONG TotalPageCount, ULONG Pa
|
|||
|
||||
if (AvailablePagesSoFar >= PagesNeeded)
|
||||
{
|
||||
return Index;
|
||||
return Index - AvailablePagesSoFar + 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue