mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-11-23 13:55:36 +08:00
fix
This commit is contained in:
parent
2d1edde1a7
commit
a8d8e362dd
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user