fix protect thread add list

This commit is contained in:
2026-06-03 14:09:57 +08:00
parent b6aa2891ab
commit 891c183697
+10 -4
View File
@@ -1,5 +1,5 @@
#include "create_thread_callback.h" #include "create_thread_callback.h"
#include "protect_filter.h"
@@ -19,13 +19,19 @@ namespace thread_notify_routine
if (!NT_SUCCESS(status)) if (!NT_SUCCESS(status))
goto end; goto end;
PEPROCESS protect_process{ 0 };
/*PEPROCESS protect_process{ 0 };
status = PsLookupProcessByProcessId(protect_id, &protect_process); status = PsLookupProcessByProcessId(protect_id, &protect_process);
if (!NT_SUCCESS(status)) if (!NT_SUCCESS(status))
goto end;*/
if(!protect_filter::is_protect_pid(0, process))
goto end; goto end;
if (protect_process != process) /*if (protect_process != process)
goto end; goto end;*/
auto cutor_process_id = PsGetCurrentProcessId(); auto cutor_process_id = PsGetCurrentProcessId();
if (HandleToLong(cutor_process_id) == 4) if (HandleToLong(cutor_process_id) == 4)