mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
Fixed infinite loop for 0-length wavehdrs.
This commit is contained in:
parent
e2ab3ef792
commit
6ff83ad45f
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue