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