This commit is contained in:
恍兮惚兮 2024-04-02 02:25:13 +08:00
parent 2d1edde1a7
commit a8d8e362dd
2 changed files with 5 additions and 5 deletions

View File

@ -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)
{

View File

@ -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