From b6aa2891ab7c04b15e14101486a8437a4e628b0e Mon Sep 17 00:00:00 2001 From: maowenrui <3505719167@qq.com> Date: Wed, 3 Jun 2026 10:29:54 +0800 Subject: [PATCH] fix is_protect_pid function if pid --- Anti-Cheat_Driver/protect_filter.cpp | 7 ++++--- Anti-Cheat_Driver/protect_filter.h | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Anti-Cheat_Driver/protect_filter.cpp b/Anti-Cheat_Driver/protect_filter.cpp index fc57da6..b34cb77 100644 --- a/Anti-Cheat_Driver/protect_filter.cpp +++ b/Anti-Cheat_Driver/protect_filter.cpp @@ -36,7 +36,7 @@ namespace protect_filter return TRUE; } - auto is_protect_pid(ULONG Pid) -> ULONG + auto is_protect_pid(ULONG Pid) -> BOOL { UNREFERENCED_PARAMETER(Pid); if (IsListEmpty(&g_protect_list)) @@ -48,9 +48,10 @@ namespace protect_filter auto list_data = reinterpret_cast(CONTAINING_RECORD(list_head, FILTER, List)); list_head = list_head->Flink; - DbgPrintEx(77, 0, "[+] pid:%d | eproecss:%p\n", list_data->Pid, list_data->Eprocess); - + if (list_data->Pid == Pid) + return TRUE; + //DbgPrintEx(77, 0, "[+] pid:%d | eproecss:%p\n", list_data->Pid, list_data->Eprocess); } return NULL; diff --git a/Anti-Cheat_Driver/protect_filter.h b/Anti-Cheat_Driver/protect_filter.h index a2d630d..d84c12a 100644 --- a/Anti-Cheat_Driver/protect_filter.h +++ b/Anti-Cheat_Driver/protect_filter.h @@ -15,7 +15,7 @@ namespace protect_filter auto add_list(ULONG Pid, HWND hwnd)->BOOL; - auto is_protect_pid(ULONG Pid)->ULONG; + auto is_protect_pid(ULONG Pid) -> BOOL; auto remove_list(ULONG Pid, HWND hwnd)->BOOL; } \ No newline at end of file