mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[NTOS:MM] Fix a bug in MiBuildPfnDatabase
MxPfnAllocation is in pages, not in bytes!
This commit is contained in:
parent
18cd763160
commit
12e2c48a25
1 changed files with 2 additions and 2 deletions
|
@ -610,9 +610,9 @@ MiBuildPfnDatabase(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
|||
|
||||
/* Map the PDEs and PPEs for the pfn database (ignore holes) */
|
||||
#if (_MI_PAGING_LEVELS >= 3)
|
||||
MiMapPPEs(MmPfnDatabase, (PUCHAR)MmPfnDatabase + MxPfnAllocation - 1);
|
||||
MiMapPPEs(MmPfnDatabase, (PUCHAR)MmPfnDatabase + (MxPfnAllocation * PAGE_SIZE) - 1);
|
||||
#endif
|
||||
MiMapPDEs(MmPfnDatabase, (PUCHAR)MmPfnDatabase + MxPfnAllocation - 1);
|
||||
MiMapPDEs(MmPfnDatabase, (PUCHAR)MmPfnDatabase + (MxPfnAllocation * PAGE_SIZE) - 1);
|
||||
|
||||
/* First initialize the color tables */
|
||||
MiInitializeColorTables();
|
||||
|
|
Loading…
Reference in a new issue