Memory Tracker: If PageTable is nullptr, read the current one

This commit is contained in:
Alex
2022-12-17 19:02:07 +02:00
parent 32e8eecc69
commit 013b635524
2 changed files with 5 additions and 2 deletions

View File

@ -36,7 +36,10 @@ namespace Memory
Tracker::Tracker(PageTable4 *PageTable)
{
this->PageTable = PageTable;
if (PageTable)
this->PageTable = PageTable;
else
this->PageTable = (PageTable4 *)CPU::x64::readcr3().raw;
debug("Tracker initialized.");
}