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
1 changed files with 4 additions and 1 deletions

View File

@ -369,8 +369,11 @@ MMRESULT WINAPI timeKillEvent(UINT wID)
break; break;
} }
} }
if (list_empty(&timer_list)) if (list_empty(&timer_list)) {
char c = 'q';
TIME_TimeToDie = 1; TIME_TimeToDie = 1;
write(TIME_fdWake[1], &c, sizeof(c));
}
LeaveCriticalSection(&WINMM_cs); LeaveCriticalSection(&WINMM_cs);
if (!lpSelf) if (!lpSelf)