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

This commit is contained in:
Maarten Lankhorst 2010-05-21 21:31:26 +02:00 committed by Alexandre Julliard
parent 163c7021b1
commit 3e5f7f49fe

View file

@ -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)