Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
78b2fd83
Commit
78b2fd83
authored
Oct 25, 2013
by
Qian Hong
Committed by
Alexandre Julliard
Oct 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Fixed mixerGetControlDetails with null paDetails.
parent
5e81bad2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
mixer.c
dlls/winmm/tests/mixer.c
+8
-1
waveform.c
dlls/winmm/waveform.c
+1
-1
No files found.
dlls/winmm/tests/mixer.c
View file @
78b2fd83
...
...
@@ -197,10 +197,17 @@ static void mixer_test_controlA(HMIXER mix, LPMIXERCONTROLA control)
details
.
dwControlID
=
control
->
dwControlID
;
details
.
cChannels
=
1
;
U
(
details
).
cMultipleItems
=
0
;
details
.
paDetails
=
&
value
;
details
.
cbDetails
=
sizeof
(
value
);
/* test NULL paDetails */
details
.
paDetails
=
NULL
;
rc
=
mixerGetControlDetails
((
HMIXEROBJ
)
mix
,
&
details
,
MIXER_GETCONTROLDETAILSF_VALUE
);
ok
(
rc
==
MMSYSERR_INVALPARAM
,
"mixerGetDevCapsA: MMSYSERR_INVALPARAM expected, got %s
\n
"
,
mmsys_error
(
rc
));
/* read the current control value */
details
.
paDetails
=
&
value
;
rc
=
mixerGetControlDetails
((
HMIXEROBJ
)
mix
,
&
details
,
MIXER_GETCONTROLDETAILSF_VALUE
);
ok
(
rc
==
MMSYSERR_NOERROR
,
"mixerGetControlDetails(MIXER_GETCONTROLDETAILSF_VALUE): "
"MMSYSERR_NOERROR expected, got %s
\n
"
,
...
...
dlls/winmm/waveform.c
View file @
78b2fd83
...
...
@@ -3849,7 +3849,7 @@ UINT WINAPI mixerGetControlDetailsW(HMIXEROBJ hmix, LPMIXERCONTROLDETAILS lpmcdW
if
(
FAILED
(
hr
))
return
MMSYSERR_NODRIVER
;
if
(
!
lpmcdW
)
if
(
!
lpmcdW
||
!
lpmcdW
->
paDetails
)
return
MMSYSERR_INVALPARAM
;
TRACE
(
"dwControlID: %u
\n
"
,
lpmcdW
->
dwControlID
);
...
...
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