Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
8416bb04
Commit
8416bb04
authored
Dec 29, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 30, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
>
parent
c5b68d1d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
wavemap.c
dlls/msacm32.drv/wavemap.c
+2
-0
No files found.
dlls/msacm32.drv/wavemap.c
View file @
8416bb04
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment