winealsa: Have the MIDI recorder wait in poll(), not snd_seq_event_input().

This commit is contained in:
Jörg Höhle 2013-01-19 20:32:02 +01:00 committed by Alexandre Julliard
parent 22b3a8251f
commit d7c716c470
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ static DWORD WINAPI midRecThread(LPVOID arg)
snd_seq_poll_descriptors(midiSeq, pfd, npfd, POLLIN);
/* Check if an event is present */
if (poll(pfd, npfd, 250) < 0) {
if (poll(pfd, npfd, 250) <= 0) {
HeapFree(GetProcessHeap(), 0, pfd);
continue;
}