Maarten Lankhorst : winmm: Wake up timer after the timer list is empty.

Alexandre Julliard julliard at winehq.org
Mon May 24 11:30:48 CDT 2010


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

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Fri May 21 21:31:26 2010 +0200

winmm: Wake up timer after the timer list is empty.

---

 dlls/winmm/time.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/winmm/time.c b/dlls/winmm/time.c
index 3d45fd9..e692fb6 100644
--- a/dlls/winmm/time.c
+++ b/dlls/winmm/time.c
@@ -369,8 +369,11 @@ MMRESULT WINAPI timeKillEvent(UINT wID)
 	    break;
 	}
     }
-    if (list_empty(&timer_list))
+    if (list_empty(&timer_list)) {
+        char c = 'q';
         TIME_TimeToDie = 1;
+        write(TIME_fdWake[1], &c, sizeof(c));
+    }
     LeaveCriticalSection(&WINMM_cs);
 
     if (!lpSelf)




More information about the wine-cvs mailing list