From 6ff83ad45f7f04247bf19724abd594650d5037eb Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Sun, 5 Dec 1999 02:18:59 +0000 Subject: [PATCH] Fixed infinite loop for 0-length wavehdrs. --- dlls/winmm/wineoss/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winmm/wineoss/audio.c b/dlls/winmm/wineoss/audio.c index bc88bc2f062..f7de208a469 100644 --- a/dlls/winmm/wineoss/audio.c +++ b/dlls/winmm/wineoss/audio.c @@ -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 */