From: Rémi Bernon rbernon@codeweavers.com
--- server/hook.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/server/hook.c b/server/hook.c index d04b784b0b3..7fd86226f7d 100644 --- a/server/hook.c +++ b/server/hook.c @@ -265,12 +265,10 @@ static struct hook *get_next_hook( struct thread *thread, struct hook *hook, int user_handle_t win, int object_id, int child_id ) { struct hook_table *global_hooks, *table = hook->table; - struct list *ptr; int index = hook->index;
- while ((ptr = list_next( &table->hooks[index], &hook->chain ))) + LIST_FOR_EACH_ENTRY( hook, &table->hooks[index], struct hook, chain ) { - hook = LIST_ENTRY( ptr, struct hook, chain ); if (hook->proc && run_hook_in_current_thread( hook )) { if (event >= hook->event_min && event <= hook->event_max)