diff --git a/dlls/winmm/wineoss/audio.c b/dlls/winmm/wineoss/audio.c index c0f71a8bb19..cd21da96fff 100644 --- a/dlls/winmm/wineoss/audio.c +++ b/dlls/winmm/wineoss/audio.c @@ -1754,7 +1754,7 @@ static DWORD CALLBACK widRecorder(LPVOID pmt) { info.fragments --; - if (lpWaveHdr->dwBufferLength - lpWaveHdr->dwBytesRecorded > wwi->dwFragmentSize) + if (lpWaveHdr->dwBufferLength - lpWaveHdr->dwBytesRecorded >= wwi->dwFragmentSize) { /* directly read fragment in wavehdr */ bytesRead = read(wwi->unixdev,