From 37ff0b36597664873efad5cbc088d3ac0dcf5285 Mon Sep 17 00:00:00 2001 From: Matthijs Lavrijsen Date: Tue, 15 Dec 2020 19:48:00 +0100 Subject: [PATCH] Fix regression in x64dbg plugin caused by 9ad0839d. Fixes #115 --- ScyllaHideX64DBGPlugin/ScyllaHideX64DBGPlugin.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ScyllaHideX64DBGPlugin/ScyllaHideX64DBGPlugin.cpp b/ScyllaHideX64DBGPlugin/ScyllaHideX64DBGPlugin.cpp index 6a7b7aad..15039e44 100644 --- a/ScyllaHideX64DBGPlugin/ScyllaHideX64DBGPlugin.cpp +++ b/ScyllaHideX64DBGPlugin/ScyllaHideX64DBGPlugin.cpp @@ -190,6 +190,13 @@ static void cbDebugloop(CBTYPE cbType, void* callbackInfo) { case STATUS_BREAKPOINT: { + if (!bHooked) + { + ReadNtApiInformation(&g_hdd); + + bHooked = true; + startInjection(ProcessId, &g_hdd, g_scyllaHideDllPath.c_str(), true); + } break; }