Commit 6ff83ad4 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

Fixed infinite loop for 0-length wavehdrs.

parent e2ab3ef7
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment