From b57cc5561bd2eb2736331b94c1d309b22c2a1b8b Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 16 Dec 2009 17:22:34 +0100 Subject: [PATCH] server: Don't reset the idle event when the client stops waiting. --- dlls/user32/tests/msg.c | 2 +- server/queue.c | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c index efa5b128b38..d721bda1bdc 100644 --- a/dlls/user32/tests/msg.c +++ b/dlls/user32/tests/msg.c @@ -12040,7 +12040,7 @@ static const struct { 0, 0, FALSE }, /* 10 */ { 0, 0, TRUE }, { 0, 0, FALSE }, - { 0, WAIT_TIMEOUT, TRUE }, + { 0, WAIT_TIMEOUT, FALSE }, }; static void do_wait_idle_child( int arg ) diff --git a/server/queue.c b/server/queue.c index b7cbc641504..2c8140d169b 100644 --- a/server/queue.c +++ b/server/queue.c @@ -794,19 +794,10 @@ static int msg_queue_add_queue( struct object *obj, struct wait_queue_entry *ent static void msg_queue_remove_queue(struct object *obj, struct wait_queue_entry *entry ) { struct msg_queue *queue = (struct msg_queue *)obj; - struct process *process = entry->thread->process; remove_queue( obj, entry ); if (queue->fd && list_empty( &obj->wait_queue )) /* last on the queue is gone */ set_fd_events( queue->fd, 0 ); - - assert( entry->thread->queue == queue ); - - /* if waiting on the main process queue, reset the idle event */ - if (process->queue == queue) - { - if (process->idle_event) reset_event( process->idle_event ); - } } static void msg_queue_dump( struct object *obj, int verbose )