Fixed infinite loop for 0-length wavehdrs.

This commit is contained in:
Eric Pouech 1999-12-05 02:18:59 +00:00 committed by Alexandre Julliard
parent e2ab3ef792
commit 6ff83ad45f
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ static BOOL wodPlayer_WriteFragments(WINE_WAVEOUT* wwo)
count = write(wwo->unixdev, lpData + wwo->dwOffCurrHdr, toWrite);
TRACE("write(%p[%5lu], %5lu) => %d\n", lpData, wwo->dwOffCurrHdr, toWrite, count);
if (count > 0) {
if (count > 0 || toWrite == 0) {
LPWAVEHDR* wh;
/* move lpWaveHdr to the end of notify list */