From 891c183697e25452bff5c5ccdb979b498faab579 Mon Sep 17 00:00:00 2001 From: maowenrui <3505719167@qq.com> Date: Wed, 3 Jun 2026 14:09:57 +0800 Subject: [PATCH] fix protect thread add list --- Anti-Cheat_Driver/create_thread_callback.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Anti-Cheat_Driver/create_thread_callback.cpp b/Anti-Cheat_Driver/create_thread_callback.cpp index e746e10..1a513fa 100644 --- a/Anti-Cheat_Driver/create_thread_callback.cpp +++ b/Anti-Cheat_Driver/create_thread_callback.cpp @@ -1,5 +1,5 @@ #include "create_thread_callback.h" - +#include "protect_filter.h" @@ -19,13 +19,19 @@ namespace thread_notify_routine if (!NT_SUCCESS(status)) goto end; - PEPROCESS protect_process{ 0 }; + + + + /*PEPROCESS protect_process{ 0 }; status = PsLookupProcessByProcessId(protect_id, &protect_process); if (!NT_SUCCESS(status)) + goto end;*/ + + if(!protect_filter::is_protect_pid(0, process)) goto end; - if (protect_process != process) - goto end; + /*if (protect_process != process) + goto end;*/ auto cutor_process_id = PsGetCurrentProcessId(); if (HandleToLong(cutor_process_id) == 4)