Commit 53cb7cec authored by Huw D M Davies's avatar Huw D M Davies Committed by Alexandre Julliard

Fix off by one error in buffer length check.

parent a00cefb7
...@@ -1754,7 +1754,7 @@ static DWORD CALLBACK widRecorder(LPVOID pmt) ...@@ -1754,7 +1754,7 @@ static DWORD CALLBACK widRecorder(LPVOID pmt)
{ {
info.fragments --; info.fragments --;
if (lpWaveHdr->dwBufferLength - lpWaveHdr->dwBytesRecorded > wwi->dwFragmentSize) if (lpWaveHdr->dwBufferLength - lpWaveHdr->dwBytesRecorded >= wwi->dwFragmentSize)
{ {
/* directly read fragment in wavehdr */ /* directly read fragment in wavehdr */
bytesRead = read(wwi->unixdev, bytesRead = read(wwi->unixdev,
......
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