Fixed infinite loop for 0-length wavehdrs.
This commit is contained in:
parent
e2ab3ef792
commit
6ff83ad45f
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue