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