Skip to content

Commit

Permalink
Template: Fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorian Eikenberg authored and rageagainsthepc committed Jan 3, 2024
1 parent 70fe0be commit e59b933
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugins/template/src/lib/TemplateCode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ namespace Template
// available events.
void TemplateCode::doStuffWithProcessStart(std::shared_ptr<const ActiveProcessInformation> processInformation)
{
auto dtbContent = lowLevelIntrospectionApi->read64PA(processInformation->processCR3);
auto dtbContent = lowLevelIntrospectionApi->read64PA(processInformation->processUserDtb);
// Example for structured logging calls
logger->info("Process start triggered.",
{{"processDtb", processInformation->processCR3},
{{"processDtb", processInformation->processUserDtb},
{"processId", processInformation->pid},
{"dtbContent", dtbContent}});
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/template/test/TemplateCode_unittest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace Template
// Test setup
uint64_t processDtb = 0x1337;
auto processInformation =
std::make_shared<ActiveProcessInformation>(ActiveProcessInformation{.processCR3 = processDtb});
std::make_shared<ActiveProcessInformation>(ActiveProcessInformation{.processUserDtb = processDtb});
std::shared_ptr<MockIntrospectionAPI> introspectionApi = std::make_shared<MockIntrospectionAPI>();
std::unique_ptr<NiceMock<MockPluginInterface>> pluginInterface =
std::make_unique<NiceMock<MockPluginInterface>>();
Expand Down

0 comments on commit e59b933

Please sign in to comment.