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
a9bd81be
Commit
a9bd81be
authored
May 08, 2006
by
Robert Reif
Committed by
Alexandre Julliard
May 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Check waveOutGetVolume parameter.
parent
6aac4036
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
wave.c
dlls/winmm/tests/wave.c
+3
-0
winmm.c
dlls/winmm/winmm.c
+6
-1
No files found.
dlls/winmm/tests/wave.c
View file @
a9bd81be
...
...
@@ -640,6 +640,9 @@ static void wave_out_test_deviceOut(int device, double duration,
frag
.
dwFlags
=
0
;
frag
.
dwLoops
=
0
;
rc
=
waveOutGetVolume
(
wout
,
0
);
ok
(
rc
==
MMSYSERR_INVALPARAM
,
"waveOutGetVolume(%s,0) expected "
"MMSYSERR_INVALPARAM, got %s
\n
"
,
dev_name
(
device
),
wave_out_error
(
rc
));
rc
=
waveOutGetVolume
(
wout
,
&
volume
);
ok
(
has_volume
?
rc
==
MMSYSERR_NOERROR
:
rc
==
MMSYSERR_NOTSUPPORTED
,
"waveOutGetVolume(%s): rc=%s
\n
"
,
dev_name
(
device
),
wave_out_error
(
rc
));
...
...
dlls/winmm/winmm.c
View file @
a9bd81be
...
...
@@ -2425,7 +2425,12 @@ UINT WINAPI waveOutGetVolume(HWAVEOUT hWaveOut, LPDWORD lpdw)
TRACE
(
"(%p, %08lx);
\n
"
,
hWaveOut
,
(
DWORD
)
lpdw
);
if
((
wmld
=
MMDRV_Get
(
hWaveOut
,
MMDRV_WAVEOUT
,
TRUE
))
==
NULL
)
if
(
lpdw
==
NULL
)
{
WARN
(
"invalid parameter
\n
"
);
return
MMSYSERR_INVALPARAM
;
}
if
((
wmld
=
MMDRV_Get
(
hWaveOut
,
MMDRV_WAVEOUT
,
TRUE
))
==
NULL
)
return
MMSYSERR_INVALHANDLE
;
return
MMDRV_Message
(
wmld
,
WODM_GETVOLUME
,
(
DWORD_PTR
)
lpdw
,
0L
,
TRUE
);
...
...
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