Alexandre Julliard : server: Don' t set the idle event when waiting for a message reply.

Alexandre Julliard julliard at winehq.org
Thu Dec 17 10:37:06 CST 2009


Module: wine
Branch: master
Commit: 92e704edc50828f710a6d859216113a28ebf6430
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=92e704edc50828f710a6d859216113a28ebf6430

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Dec 16 17:32:15 2009 +0100

server: Don't set the idle event when waiting for a message reply.

---

 dlls/user32/tests/msg.c |    2 +-
 server/queue.c          |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
index 2d5477c..052bef2 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -12031,7 +12031,7 @@ static const struct
 /* 0 */  { WAIT_TIMEOUT, WAIT_TIMEOUT, FALSE },
          { WAIT_TIMEOUT, 0,            FALSE },
          { WAIT_TIMEOUT, 0,            FALSE },
-         { WAIT_TIMEOUT, WAIT_TIMEOUT, TRUE  },
+         { WAIT_TIMEOUT, WAIT_TIMEOUT, FALSE },
          { WAIT_TIMEOUT, WAIT_TIMEOUT, FALSE },
 /* 5 */  { WAIT_TIMEOUT, 0,            FALSE },
          { WAIT_TIMEOUT, 0,            FALSE },
diff --git a/server/queue.c b/server/queue.c
index 3b7b449..3ab8d00 100644
--- a/server/queue.c
+++ b/server/queue.c
@@ -771,7 +771,7 @@ static int msg_queue_add_queue( struct object *obj, struct wait_queue_entry *ent
         set_error( STATUS_ACCESS_DENIED );
         return 0;
     }
-    if (process->idle_event) set_event( process->idle_event );
+    if (process->idle_event && !(queue->wake_mask & QS_SMRESULT)) set_event( process->idle_event );
 
     if (queue->fd && list_empty( &obj->wait_queue ))  /* first on the queue */
         set_fd_events( queue->fd, POLLIN );




More information about the wine-cvs mailing list