aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/hookutils.cpp
diff options
context:
space:
mode:
authorgeni <me@geni.site>2021-12-31 14:41:53 +0200
committergeni <me@geni.site>2021-12-31 14:41:53 +0200
commit07fbef738274518dfcc60da3a624d03eb09dc015 (patch)
tree6c6ede533cb1fe461d59bb8eeb3041cd29c2a5b1 /NorthstarDedicatedTest/hookutils.cpp
parentae2f240d4f5e0d0c6da777838a42bd3e457d2711 (diff)
downloadNorthstarLauncher-07fbef738274518dfcc60da3a624d03eb09dc015.tar.gz
NorthstarLauncher-07fbef738274518dfcc60da3a624d03eb09dc015.zip
Clean up
Diffstat (limited to 'NorthstarDedicatedTest/hookutils.cpp')
-rw-r--r--NorthstarDedicatedTest/hookutils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/NorthstarDedicatedTest/hookutils.cpp b/NorthstarDedicatedTest/hookutils.cpp
index e86c671c..8ab24a3b 100644
--- a/NorthstarDedicatedTest/hookutils.cpp
+++ b/NorthstarDedicatedTest/hookutils.cpp
@@ -38,7 +38,7 @@ void HookEnabler::CreateHook(LPVOID ppTarget, LPVOID ppDetour, LPVOID* ppOrigina
else
{
if (targetName != nullptr)
- spdlog::error("MH_CreateHook failed for function %s", targetName);
+ spdlog::error("MH_CreateHook failed for function {}", targetName);
else
spdlog::error("MH_CreateHook failed for unknown function");
}
@@ -51,7 +51,7 @@ HookEnabler::~HookEnabler()
if (MH_EnableHook(hook->targetAddress) != MH_OK)
{
if (hook->targetName != nullptr)
- spdlog::error("MH_EnableHook failed for function %s", hook->targetName);
+ spdlog::error("MH_EnableHook failed for function {}", hook->targetName);
else
spdlog::error("MH_EnableHook failed for unknown function");
}