From 3e5f7f49fe12e87d7ecd30f0969e99814dfb0e15 Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Fri, 21 May 2010 21:31:26 +0200 Subject: [PATCH] winmm: Wake up timer after the timer list is empty. --- dlls/winmm/time.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/winmm/time.c b/dlls/winmm/time.c index 3d45fd9a3ec..e692fb6ce39 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)