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
253ffd50
Commit
253ffd50
authored
Apr 28, 2004
by
Robert Reif
Committed by
Alexandre Julliard
Apr 28, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another error return value check added after looking at the windows
tests results. Replaced -1 with WAVE_MAPPER.
parent
9faf6691
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
wave.c
dlls/winmm/tests/wave.c
+6
-6
No files found.
dlls/winmm/tests/wave.c
View file @
253ffd50
...
...
@@ -268,7 +268,7 @@ static void wave_out_tests()
ok
(
rc
==
MMSYSERR_BADDEVICEID
,
"waveOutGetDevCapsA: MMSYSERR_BADDEVICEID expected, got %d
\n
"
,
rc
);
rc
=
waveOutGetDevCapsA
(
-
1
,
&
caps
,
sizeof
(
caps
));
rc
=
waveOutGetDevCapsA
(
WAVE_MAPPER
,
&
caps
,
sizeof
(
caps
));
ok
(
rc
==
MMSYSERR_NOERROR
,
"waveOutGetDevCapsA: MMSYSERR_NOERROR expected, got %d
\n
"
,
rc
);
...
...
@@ -335,7 +335,7 @@ static void wave_out_tests()
format
.
cbSize
=
0
;
oformat
=
format
;
rc
=
waveOutOpen
(
&
wout
,
d
,
&
format
,
0
,
0
,
CALLBACK_NULL
|
WAVE_FORMAT_DIRECT
);
ok
(
rc
==
WAVERR_BADFORMAT
||
rc
==
MMSYSERR_INVALFLAG
,
ok
(
rc
==
WAVERR_BADFORMAT
||
rc
==
MMSYSERR_INVALFLAG
||
rc
==
MMSYSERR_INVALPARAM
,
"waveOutOpen: opening the device in 11 bits mode should fail %d: rc=%d
\n
"
,
d
,
rc
);
if
(
rc
==
MMSYSERR_NOERROR
)
{
trace
(
" got %ldx%2dx%d for %ldx%2dx%d
\n
"
,
...
...
@@ -356,7 +356,7 @@ static void wave_out_tests()
format
.
cbSize
=
0
;
oformat
=
format
;
rc
=
waveOutOpen
(
&
wout
,
d
,
&
format
,
0
,
0
,
CALLBACK_NULL
|
WAVE_FORMAT_DIRECT
);
ok
(
rc
==
WAVERR_BADFORMAT
||
rc
==
MMSYSERR_INVALFLAG
,
ok
(
rc
==
WAVERR_BADFORMAT
||
rc
==
MMSYSERR_INVALFLAG
||
rc
==
MMSYSERR_INVALPARAM
,
"waveOutOpen: opening the device at 2 MHz sample rate should fail %d: rc=%d
\n
"
,
d
,
rc
);
if
(
rc
==
MMSYSERR_NOERROR
)
{
trace
(
" got %ldx%2dx%d for %ldx%2dx%d
\n
"
,
...
...
@@ -490,7 +490,7 @@ static void wave_in_tests()
ok
(
rc
==
MMSYSERR_BADDEVICEID
,
"waveInGetDevCapsA: MMSYSERR_BADDEVICEID expected, got %d(%s)
\n
"
,
rc
,
wave_in_error
(
rc
));
rc
=
waveInGetDevCapsA
(
-
1
,
&
caps
,
sizeof
(
caps
));
rc
=
waveInGetDevCapsA
(
WAVE_MAPPER
,
&
caps
,
sizeof
(
caps
));
ok
(
rc
==
MMSYSERR_NOERROR
,
"waveInGetDevCapsA: MMSYSERR_NOERROR expected, got %d
\n
"
,
rc
);
...
...
@@ -557,7 +557,7 @@ static void wave_in_tests()
format
.
cbSize
=
0
;
oformat
=
format
;
rc
=
waveInOpen
(
&
win
,
d
,
&
format
,
0
,
0
,
CALLBACK_NULL
|
WAVE_FORMAT_DIRECT
);
ok
(
rc
==
WAVERR_BADFORMAT
||
rc
==
MMSYSERR_INVALFLAG
,
ok
(
rc
==
WAVERR_BADFORMAT
||
rc
==
MMSYSERR_INVALFLAG
||
rc
==
MMSYSERR_INVALPARAM
,
"waveInOpen: opening the device in 11 bit mode should fail %d: rc=%d
\n
"
,
d
,
rc
);
if
(
rc
==
MMSYSERR_NOERROR
)
{
trace
(
" got %ldx%2dx%d for %ldx%2dx%d
\n
"
,
...
...
@@ -578,7 +578,7 @@ static void wave_in_tests()
format
.
cbSize
=
0
;
oformat
=
format
;
rc
=
waveInOpen
(
&
win
,
d
,
&
format
,
0
,
0
,
CALLBACK_NULL
|
WAVE_FORMAT_DIRECT
);
ok
(
rc
==
WAVERR_BADFORMAT
||
rc
==
MMSYSERR_INVALFLAG
,
ok
(
rc
==
WAVERR_BADFORMAT
||
rc
==
MMSYSERR_INVALFLAG
||
rc
==
MMSYSERR_INVALPARAM
,
"waveInOpen: opening the device with 2 MHz sample rate should fail %d: rc=%d
\n
"
,
d
,
rc
);
if
(
rc
==
MMSYSERR_NOERROR
)
{
trace
(
" got %ldx%2dx%d for %ldx%2dx%d
\n
"
,
...
...
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