25 Jan
2026
25 Jan
'26
3:30 p.m.
On Mon Jan 19 18:56:23 2026 +0000, Michael Stefaniuc wrote:
If the `IDirectSoundBuffer_GetCaps()` fails then `IDirectSoundBuffer_GetFormat()` won't be called and format will be uninitialized.\ As `format.nSamplesPerSec` is used to calculate the malloc size we might allocate some garbage size there. Also `IDirectSoundBuffer_GetFormat()` might leave `format` uninitialized on some errors. Fixed by exiting the thread in case of an error.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9651#note_127950