From e3fe68926c619bcb9365fbd3611e261d675b2943 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 17 Mar 2005 20:51:53 +0000 Subject: [PATCH] Revert the previous change, this is not working right yet. --- server/queue.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/server/queue.c b/server/queue.c index c87dd23e503..05f4c7c9383 100644 --- a/server/queue.c +++ b/server/queue.c @@ -1117,17 +1117,17 @@ static user_handle_t find_hardware_message_window( struct thread_input *input, s static void queue_hardware_message( struct msg_queue *queue, struct message *msg ) { user_handle_t win; - struct thread *thread = NULL; - struct thread_input *input = queue ? queue->input : foreground_input; + struct thread *thread; + struct thread_input *input; unsigned int msg_code; - win = find_hardware_message_window( input, msg, &msg_code ); - if (win && !(thread = get_window_thread(win))) + win = find_hardware_message_window( queue ? queue->input : foreground_input, msg, &msg_code ); + if (!win || !(thread = get_window_thread(win))) { free( msg ); return; } - if (thread) input = thread->queue->input; + input = thread->queue->input; if (msg->msg == WM_MOUSEMOVE && merge_message( input, msg )) free( msg ); else @@ -1135,7 +1135,7 @@ static void queue_hardware_message( struct msg_queue *queue, struct message *msg list_add_tail( &input->msg_list, &msg->entry ); set_queue_bits( thread->queue, get_hardware_msg_bit(msg) ); } - if (thread) release_object( thread ); + release_object( thread ); } /* find a hardware message for the given queue */ -- 2.11.4.GIT