From: Giovanni Mascellani <gmascellani@codeweavers.com> --- dlls/winepulse.drv/pulse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winepulse.drv/pulse.c b/dlls/winepulse.drv/pulse.c index b0b92a7e1c7..953bc55ab81 100644 --- a/dlls/winepulse.drv/pulse.c +++ b/dlls/winepulse.drv/pulse.c @@ -974,7 +974,7 @@ static HRESULT pulse_spec_from_waveformat(struct pulse_stream *stream, const WAV WAVEFORMATEXTENSIBLE *wfe = (WAVEFORMATEXTENSIBLE*)fmt; UINT mask = wfe->dwChannelMask; unsigned i = 0, j; - if (fmt->cbSize != (sizeof(*wfe) - sizeof(*fmt)) && fmt->cbSize != sizeof(*wfe)) + if (fmt->cbSize < sizeof(*wfe) - sizeof(*fmt)) break; if (IsEqualGUID(&wfe->SubFormat, &KSDATAFORMAT_SUBTYPE_IEEE_FLOAT) && (!wfe->Samples.wValidBitsPerSample || wfe->Samples.wValidBitsPerSample == 32) && -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10243