Module: wine Branch: master Commit: 7265e89226993d28bbae6c4c6da22e3b8daf8562 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7265e89226993d28bbae6c4c6d...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Dec 16 18:18:07 2009 +0100
server: Set the idle event when retrieving a timer message.
---
dlls/user32/tests/msg.c | 2 +- server/queue.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c index 052bef2..d6d8b6a 100644 --- a/dlls/user32/tests/msg.c +++ b/dlls/user32/tests/msg.c @@ -12038,7 +12038,7 @@ static const struct { WAIT_TIMEOUT, WAIT_TIMEOUT, FALSE }, { 0, 0, FALSE }, { 0, 0, FALSE }, -/* 10 */ { 0, 0, TRUE }, +/* 10 */ { 0, 0, FALSE }, { 0, 0, FALSE }, { 0, WAIT_TIMEOUT, FALSE }, { 0, 0, FALSE }, diff --git a/server/queue.c b/server/queue.c index 3ab8d00..d880dff 100644 --- a/server/queue.c +++ b/server/queue.c @@ -1814,6 +1814,8 @@ DECL_HANDLER(get_message) reply->wparam = timer->id; reply->lparam = timer->lparam; reply->time = get_tick_count(); + if (!(req->flags & PM_NOYIELD) && current->process->idle_event) + set_event( current->process->idle_event ); return; }