From 54cec0ad5e93fb729171af32fc31fe7880cdc838 Mon Sep 17 00:00:00 2001 From: Manuel Bischof Date: Wed, 4 Oct 2023 11:44:02 +0200 Subject: [PATCH] Address compiler warnings --- plugins/apitracing/src/lib/TracedProcess.cpp | 2 +- plugins/apitracing/test/FunctionHook_UnitTest.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/apitracing/src/lib/TracedProcess.cpp b/plugins/apitracing/src/lib/TracedProcess.cpp index f5d18543..15d0373f 100755 --- a/plugins/apitracing/src/lib/TracedProcess.cpp +++ b/plugins/apitracing/src/lib/TracedProcess.cpp @@ -91,7 +91,7 @@ namespace ApiTracing : ConstantDefinitions::x64AddressWidth; auto definitions = functionDefinitions->getFunctionParameterDefinitions( moduleHookTarget.name, functionName, addressWidth); - auto extractor = std::make_shared(introspectionAPI, addressWidth); + auto extractor = std::make_shared(introspectionAPI, pluginInterface, addressWidth); auto functionHook = std::make_shared( moduleHookTarget.name, functionName, extractor, introspectionAPI, definitions, pluginInterface); functionHook->hookFunction(moduleBaseAddress, processInformation); diff --git a/plugins/apitracing/test/FunctionHook_UnitTest.cpp b/plugins/apitracing/test/FunctionHook_UnitTest.cpp index 5211eee1..ff5b9928 100644 --- a/plugins/apitracing/test/FunctionHook_UnitTest.cpp +++ b/plugins/apitracing/test/FunctionHook_UnitTest.cpp @@ -54,10 +54,11 @@ namespace ApiTracing std::shared_ptr extractor = std::make_shared>(); std::shared_ptr interruptEvent = std::make_shared>(); std::vector 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 {