Fix off by one error in buffer length check.

This commit is contained in:
Huw D M Davies 2001-01-18 20:29:41 +00:00 committed by Alexandre Julliard
parent a00cefb7e4
commit 53cb7cecc5
1 changed files with 1 additions and 1 deletions

View File

@ -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,