From 70d9a8d4cddbff9c52a585e1da7cd6562f223c43 Mon Sep 17 00:00:00 2001 From: maowenrui <3505719167@qq.com> Date: Tue, 16 Jun 2026 10:24:26 +0800 Subject: [PATCH] style --- Anti-Cheat_Driver/io_ctl.cpp | 3 +++ Anti-Cheat_Driver/protect_filter.cpp | 11 ----------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/Anti-Cheat_Driver/io_ctl.cpp b/Anti-Cheat_Driver/io_ctl.cpp index 83e5127..f8114aa 100644 --- a/Anti-Cheat_Driver/io_ctl.cpp +++ b/Anti-Cheat_Driver/io_ctl.cpp @@ -39,6 +39,9 @@ auto io_ctl::init_device_and_symbolic(PDRIVER_OBJECT drv_obj) -> NTSTATUS break; } + + + drv_obj->MajorFunction[IRP_MJ_CLOSE] = dispatch_create_close; drv_obj->MajorFunction[IRP_MJ_CREATE] = dispatch_create_close; drv_obj->MajorFunction[IRP_MJ_DEVICE_CONTROL] = dispatch_device_io; diff --git a/Anti-Cheat_Driver/protect_filter.cpp b/Anti-Cheat_Driver/protect_filter.cpp index 6be5e23..ab695ad 100644 --- a/Anti-Cheat_Driver/protect_filter.cpp +++ b/Anti-Cheat_Driver/protect_filter.cpp @@ -48,7 +48,6 @@ namespace protect_filter auto list_data = reinterpret_cast(CONTAINING_RECORD(list_head, FILTER, List)); list_head = list_head->Flink; - if (Pid) { if (list_data->Pid == Pid) @@ -59,9 +58,6 @@ namespace protect_filter if (list_data->Eprocess == Eprocess) return TRUE; } - - - //DbgPrintEx(77, 0, "[+] pid:%d | eproecss:%p\n", list_data->Pid, list_data->Eprocess); } return NULL; @@ -73,7 +69,6 @@ namespace protect_filter BOOL is_remove_list = FALSE; - if (IsListEmpty(&g_protect_list)) return NULL; @@ -96,12 +91,6 @@ namespace protect_filter } } - return TRUE; } - - - - - } \ No newline at end of file