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
f6502221
Commit
f6502221
authored
Dec 15, 2002
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 15, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If given a bad device id waveOutGetDevCapsA is supposed to return
MMSYSERR_BADDEVICEID. Fixes a todo_wine in the winmm test.
parent
caf31cee
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
wave.c
dlls/winmm/tests/wave.c
+0
-2
winmm.c
dlls/winmm/winmm.c
+1
-1
No files found.
dlls/winmm/tests/wave.c
View file @
f6502221
...
...
@@ -55,11 +55,9 @@ void wave_out_tests()
ndev
=
waveOutGetNumDevs
();
trace
(
"found %d WaveOut devices
\n
"
,
ndev
);
todo_wine
{
rc
=
waveOutGetDevCapsA
(
ndev
+
1
,
&
caps
,
sizeof
(
caps
));
ok
(
rc
==
MMSYSERR_BADDEVICEID
,
"waveOutGetDevCa psA: MMSYSERR_BADDEVICEID expected, got %d"
,
rc
);
}
format
.
wFormatTag
=
WAVE_FORMAT_PCM
;
format
.
nChannels
=
2
;
...
...
dlls/winmm/winmm.c
View file @
f6502221
...
...
@@ -2225,7 +2225,7 @@ UINT WINAPI waveOutGetDevCapsA(UINT uDeviceID, LPWAVEOUTCAPSA lpCaps,
if
(
lpCaps
==
NULL
)
return
MMSYSERR_INVALPARAM
;
if
((
wmld
=
MMDRV_Get
((
HANDLE
)
uDeviceID
,
MMDRV_WAVEOUT
,
TRUE
))
==
NULL
)
return
MMSYSERR_INVALHANDLE
;
return
MMSYSERR_BADDEVICEID
;
return
MMDRV_Message
(
wmld
,
WODM_GETDEVCAPS
,
(
DWORD
)
lpCaps
,
uSize
,
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