reactos/sdk
Oleg Dubinskiy 5949c20d97
[MMIXER] Fix additional data size initialization for different audio formats (#6753)
Calculate size of the additinal data based on the format tag specified by the caller.
For PCM wave format, it should be zero, and for all others,
it should be taken from cbSize member of WAVEFORMATEX structure.
- Initialize data size for each format appropriately.
- Append it to the total pin connect allocation size, to allocate enough memory for it.
- Use it as additional data size for requested wave format.
- Append it to the total size of data format.
- Add SAL2 annotations for MMixerInitializeDataFormat function.
Fixes two crashes in winmm:capture and winmm:wave winetests, which have been introduced by 12b3272d9e.
So this is an addendum to that commit.
CORE-19514
2024-04-18 23:19:35 +02:00
..
cmake [CMAKE] Update sdk/cmake/baseaddress(,_msvc).cmake (#6627) 2024-03-16 13:46:10 +09:00
include [CRT] crtdefs.h: Wrap localeinfo_struct in ifdef 2024-04-16 20:10:38 +02:00
lib [MMIXER] Fix additional data size initialization for different audio formats (#6753) 2024-04-18 23:19:35 +02:00
tools [RSYM/x64] Sync UNW_FLAG_* values (#6653) 2024-03-23 15:13:23 +01:00