[*] Update Hello System test to account for sections without a module

This commit is contained in:
Reece Wilson 2022-04-21 13:30:44 +01:00
parent 78467d629d
commit 6a430b5f3f
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit 52983989b5f426700992104101069e7f2a04fbe4 Subproject commit a66fb2c5107487287fd6a7c2223efd92c63813f8

View File

@ -81,7 +81,7 @@ static void DumpAddressSpace()
for (const auto &mod : AuProcess::DumpExecutableAll()) for (const auto &mod : AuProcess::DumpExecutableAll())
{ {
auto temp = mod.moduleMeta.lock(); auto temp = mod.moduleMeta.lock();
if (temp != moduleMeta) if (temp != moduleMeta && temp)
{ {
moduleMeta = temp; moduleMeta = temp;
AuLogInfo("Module: {} ({}) @ 0x{:x} (0x{:x})", temp->moduleMeta->moduleName, temp->moduleMeta->modulePath, temp->moduleMeta->moduleBase, temp->moduleMeta->origVa); AuLogInfo("Module: {} ({}) @ 0x{:x} (0x{:x})", temp->moduleMeta->moduleName, temp->moduleMeta->modulePath, temp->moduleMeta->moduleBase, temp->moduleMeta->origVa);