Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 800ea4f

Browse files
removed unused code
1 parent 3dc306d commit 800ea4f

File tree

6 files changed

+1
-536
lines changed

6 files changed

+1
-536
lines changed

‎include/kptnhook/drvglobal.h‎

Lines changed: 0 additions & 10 deletions
This file was deleted.

‎src/CMakeLists.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
target_sources(kptnhook PRIVATE
2-
${CMAKE_CURRENT_LIST_DIR}/drvglobal.cpp
32
${CMAKE_CURRENT_LIST_DIR}/main.cpp
43
${CMAKE_CURRENT_LIST_DIR}/handler.cpp
54
${CMAKE_CURRENT_LIST_DIR}/path.cpp

‎src/drvglobal.cpp‎

Lines changed: 0 additions & 3 deletions
This file was deleted.

‎src/handler.cpp‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include "hook.h"
77
#include "known_dlls.h"
88
#include "pointers.h"
9-
#include "drvglobal.h"
109
#include "arch.h"
1110

1211
#include <ntimage.h>
@@ -19,9 +18,6 @@ ULONG init_lazy(PRTL_RUN_ONCE run_once, PVOID a, PVOID* ctx) {
1918
UNREFERENCED_PARAMETER(ctx);
2019
NTSTATUS status = STATUS_SUCCESS;
2120

22-
log_debug("reg path: %wZ", GLOBAL.registry_path);
23-
log_debug("drv object: %p", GLOBAL.obj);
24-
2521
// init known dlls
2622
for (const UNICODE_STRING& filename : KNOWN_DLLS)
2723
if (!NT_SUCCESS(add_known_dll(&filename, *reinterpret_cast<arch*>(a)))) break;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /