May 21, 2026
8 p.m.
On Thu May 21 19:46:53 2026 +0000, Matteo Bruni wrote:
It doesn't look like we have tests confirming that `IDirectSoundCaptureBuffer::Lock()` never wraps around to the start of the buffer, returning valid data in the `lplpvAudioPtr2`, `lpdwAudioBytes2` out parameters (see e.g. https://learn.microsoft.com/en-us/previous-versions/windows/desktop/ee418179...) for an explanation of how it would work). Indeed, thanks, my added test only tests the case when start is invalid and the requested size is larger than the total buffer size, might behave differently for valid start and wraparound. I will test such case and update the patch accoringly.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10966#note_140988