mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 05:30:50 +00:00
msacm32.drv: Initialize reserved fields in WAVEINCAPS/WAVEOUTCAPS (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c5b68d1db2
commit
8416bb0453
|
@ -520,6 +520,7 @@ static DWORD wodGetDevCaps(UINT wDevID, WAVEMAPDATA* wom, LPWAVEOUTCAPSW lpWaveC
|
|||
WAVE_FORMAT_2M08 | WAVE_FORMAT_2S08 | WAVE_FORMAT_2M16 | WAVE_FORMAT_2S16 |
|
||||
WAVE_FORMAT_1M08 | WAVE_FORMAT_1S08 | WAVE_FORMAT_1M16 | WAVE_FORMAT_1S16;
|
||||
woc.wChannels = 2;
|
||||
woc.wReserved1 = 0;
|
||||
woc.dwSupport = WAVECAPS_VOLUME | WAVECAPS_LRVOLUME;
|
||||
memcpy(lpWaveCaps, &woc, min(dwParam2, sizeof(woc)));
|
||||
|
||||
|
@ -1075,6 +1076,7 @@ static DWORD widGetDevCaps(UINT wDevID, WAVEMAPDATA* wim, LPWAVEINCAPSW lpWaveCa
|
|||
WAVE_FORMAT_2M08 | WAVE_FORMAT_2S08 | WAVE_FORMAT_2M16 | WAVE_FORMAT_2S16 |
|
||||
WAVE_FORMAT_1M08 | WAVE_FORMAT_1S08 | WAVE_FORMAT_1M16 | WAVE_FORMAT_1S16;
|
||||
wic.wChannels = 2;
|
||||
wic.wReserved1 = 0;
|
||||
memcpy(lpWaveCaps, &wic, min(dwParam2, sizeof(wic)));
|
||||
|
||||
return MMSYSERR_NOERROR;
|
||||
|
|
Loading…
Reference in a new issue