Skip to content

Commit

Permalink
Address compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Bischof committed Oct 4, 2023
1 parent 038f4b3 commit 54cec0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/apitracing/src/lib/TracedProcess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ namespace ApiTracing
: ConstantDefinitions::x64AddressWidth;
auto definitions = functionDefinitions->getFunctionParameterDefinitions(
moduleHookTarget.name, functionName, addressWidth);
auto extractor = std::make_shared<Extractor>(introspectionAPI, addressWidth);
auto extractor = std::make_shared<Extractor>(introspectionAPI, pluginInterface, addressWidth);
auto functionHook = std::make_shared<FunctionHook>(
moduleHookTarget.name, functionName, extractor, introspectionAPI, definitions, pluginInterface);
functionHook->hookFunction(moduleBaseAddress, processInformation);
Expand Down
5 changes: 3 additions & 2 deletions plugins/apitracing/test/FunctionHook_UnitTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ namespace ApiTracing
std::shared_ptr<MockExtractor> extractor = std::make_shared<NiceMock<MockExtractor>>();
std::shared_ptr<MockInterruptEvent> interruptEvent = std::make_shared<NiceMock<MockInterruptEvent>>();
std::vector<ExtractedParameterInformation> extractedParameterInformation{
{.name = "TestInt0", .data = 0},
{.name = "TestInt0", .data = 0, .backingParameters{}},
{.name = "TestInt1",
.data = 3,
.backingParameters = {{.name = "TestInt2", .data = 4}, {.name = "TestString1", .data = "A"}}}};
.backingParameters = {{.name = "TestInt2", .data = 4, .backingParameters{}},
{.name = "TestString1", .data = "A", .backingParameters{}}}}};

void SetUp() override
{
Expand Down

0 comments on commit 54cec0a

Please sign in to comment.