From a8d8e362dd0135daf5d7055c4bacdbdce79b908b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Tue, 2 Apr 2024 02:25:13 +0800 Subject: [PATCH] fix --- LunaHook/veh_hook.cpp | 8 ++++---- LunaHook/veh_hook.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/LunaHook/veh_hook.cpp b/LunaHook/veh_hook.cpp index ea6172b..3d3768d 100644 --- a/LunaHook/veh_hook.cpp +++ b/LunaHook/veh_hook.cpp @@ -51,10 +51,10 @@ bool remove_veh_hook(void* origFunc) if (node == NULL) return false; repair_origin(node); RemoveVectoredExceptionHandler(node->handle); - return remove_veh_node(list, origFunc); + return remove_veh_node(list, origFunc) , true; } -bool remove_veh_node(veh_list_t* list, void* origFunc) +void remove_veh_node(veh_list_t* list, void* origFunc) { veh_node_t* searchnode = list->head; @@ -72,11 +72,11 @@ bool remove_veh_node(veh_list_t* list, void* origFunc) searchnode->next->last=searchnode->last; delete (searchnode); - return true; + return ; } searchnode = searchnode->next; } - return false; + return ; } LONG CALLBACK veh_dispatch(PEXCEPTION_POINTERS ExceptionInfo) { diff --git a/LunaHook/veh_hook.h b/LunaHook/veh_hook.h index d4dc3ed..9cb7ce0 100644 --- a/LunaHook/veh_hook.h +++ b/LunaHook/veh_hook.h @@ -53,7 +53,7 @@ LONG CALLBACK veh_dispatch(PEXCEPTION_POINTERS ExceptionInfo); veh_list_t* new_veh_list(); veh_node_t* create_veh_node(void* origFunc, newFuncType newFunc, void* handle, DWORD hook_type); void insert_veh_node(veh_list_t* list, veh_node_t*); -bool remove_veh_node(veh_list_t* list, void* origFunc); +void remove_veh_node(veh_list_t* list, void* origFunc); veh_node_t* get_veh_node(veh_list_t* list, void* origFunc, int range=0); #endif // LIST_T_H_INCLUDED