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
a6bf8328
Commit
a6bf8328
authored
Mar 25, 2014
by
Andrew Eikum
Committed by
Alexandre Julliard
Mar 25, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm/tests: Accept MMSYSERR_ALLOCATED for more tests.
parent
9c1d687a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
capture.c
dlls/winmm/tests/capture.c
+16
-8
No files found.
dlls/winmm/tests/capture.c
View file @
a6bf8328
...
...
@@ -454,7 +454,8 @@ static void wave_in_test_device(UINT_PTR device)
format
.
cbSize
=
0
;
rc
=
waveInOpen
(
&
win
,
device
,
&
format
,
0
,
0
,
CALLBACK_NULL
|
WAVE_FORMAT_DIRECT
);
ok
(
rc
==
MMSYSERR_NOERROR
||
rc
==
WAVERR_BADFORMAT
||
rc
==
MMSYSERR_INVALFLAG
||
rc
==
MMSYSERR_INVALPARAM
,
rc
==
MMSYSERR_INVALFLAG
||
rc
==
MMSYSERR_INVALPARAM
||
rc
==
MMSYSERR_ALLOCATED
,
"waveInOpen(%s): returned: %s
\n
"
,
dev_name
(
device
),
wave_in_error
(
rc
));
if
(
rc
==
MMSYSERR_NOERROR
)
{
waveInClose
(
win
);
...
...
@@ -472,7 +473,8 @@ static void wave_in_test_device(UINT_PTR device)
format
.
cbSize
=
0
;
rc
=
waveInOpen
(
&
win
,
device
,
&
format
,
0
,
0
,
CALLBACK_NULL
|
WAVE_FORMAT_DIRECT
);
ok
(
rc
==
MMSYSERR_NOERROR
||
rc
==
WAVERR_BADFORMAT
||
rc
==
MMSYSERR_INVALFLAG
||
rc
==
MMSYSERR_INVALPARAM
,
rc
==
MMSYSERR_INVALFLAG
||
rc
==
MMSYSERR_INVALPARAM
||
rc
==
MMSYSERR_ALLOCATED
,
"waveInOpen(%s): returned: %s
\n
"
,
dev_name
(
device
),
wave_in_error
(
rc
));
if
(
rc
==
MMSYSERR_NOERROR
)
{
waveInClose
(
win
);
...
...
@@ -496,7 +498,8 @@ static void wave_in_test_device(UINT_PTR device)
rc
=
waveInOpen
(
&
win
,
device
,
&
wfex
.
Format
,
0
,
0
,
CALLBACK_NULL
|
WAVE_FORMAT_DIRECT
);
ok
(
rc
==
MMSYSERR_NOERROR
||
rc
==
WAVERR_BADFORMAT
||
rc
==
MMSYSERR_INVALFLAG
||
rc
==
MMSYSERR_INVALPARAM
,
rc
==
MMSYSERR_INVALFLAG
||
rc
==
MMSYSERR_INVALPARAM
||
rc
==
MMSYSERR_ALLOCATED
,
"waveInOpen(%s): returned: %s
\n
"
,
dev_name
(
device
),
wave_in_error
(
rc
));
if
(
rc
==
MMSYSERR_NOERROR
)
{
waveInClose
(
win
);
...
...
@@ -520,7 +523,8 @@ static void wave_in_test_device(UINT_PTR device)
rc
=
waveInOpen
(
&
win
,
device
,
&
wfex
.
Format
,
0
,
0
,
CALLBACK_NULL
|
WAVE_FORMAT_DIRECT
);
ok
(
rc
==
MMSYSERR_NOERROR
||
rc
==
WAVERR_BADFORMAT
||
rc
==
MMSYSERR_INVALFLAG
||
rc
==
MMSYSERR_INVALPARAM
,
rc
==
MMSYSERR_INVALFLAG
||
rc
==
MMSYSERR_INVALPARAM
||
rc
==
MMSYSERR_ALLOCATED
,
"waveInOpen(%s): returned: %s
\n
"
,
dev_name
(
device
),
wave_in_error
(
rc
));
if
(
rc
==
MMSYSERR_NOERROR
)
{
waveInClose
(
win
);
...
...
@@ -544,7 +548,8 @@ static void wave_in_test_device(UINT_PTR device)
rc
=
waveInOpen
(
&
win
,
device
,
&
wfex
.
Format
,
0
,
0
,
CALLBACK_NULL
|
WAVE_FORMAT_DIRECT
);
ok
(
rc
==
MMSYSERR_NOERROR
||
rc
==
WAVERR_BADFORMAT
||
rc
==
MMSYSERR_INVALFLAG
||
rc
==
MMSYSERR_INVALPARAM
,
rc
==
MMSYSERR_INVALFLAG
||
rc
==
MMSYSERR_INVALPARAM
||
rc
==
MMSYSERR_ALLOCATED
,
"waveInOpen(%s): returned: %s
\n
"
,
dev_name
(
device
),
wave_in_error
(
rc
));
if
(
rc
==
MMSYSERR_NOERROR
)
{
waveInClose
(
win
);
...
...
@@ -571,7 +576,8 @@ static void wave_in_test_device(UINT_PTR device)
rc
=
waveInOpen
(
&
win
,
device
,
&
wfex
.
Format
,
0
,
0
,
CALLBACK_NULL
|
WAVE_FORMAT_DIRECT
);
ok
(
rc
==
MMSYSERR_NOERROR
||
rc
==
WAVERR_BADFORMAT
||
rc
==
MMSYSERR_INVALFLAG
||
rc
==
MMSYSERR_INVALPARAM
,
rc
==
MMSYSERR_INVALFLAG
||
rc
==
MMSYSERR_INVALPARAM
||
rc
==
MMSYSERR_ALLOCATED
,
"waveInOpen(%s): returned: %s
\n
"
,
dev_name
(
device
),
wave_in_error
(
rc
));
if
(
rc
==
MMSYSERR_NOERROR
)
{
waveInClose
(
win
);
...
...
@@ -596,7 +602,8 @@ static void wave_in_test_device(UINT_PTR device)
rc
=
waveInOpen
(
&
win
,
device
,
&
wfex
.
Format
,
0
,
0
,
CALLBACK_NULL
|
WAVE_FORMAT_DIRECT
);
ok
(
rc
==
MMSYSERR_NOERROR
||
rc
==
WAVERR_BADFORMAT
||
rc
==
MMSYSERR_INVALFLAG
||
rc
==
MMSYSERR_INVALPARAM
,
rc
==
MMSYSERR_INVALFLAG
||
rc
==
MMSYSERR_INVALPARAM
||
rc
==
MMSYSERR_ALLOCATED
,
"waveInOpen(%s): returned: %s
\n
"
,
dev_name
(
device
),
wave_in_error
(
rc
));
if
(
rc
==
MMSYSERR_NOERROR
)
{
waveInClose
(
win
);
...
...
@@ -620,7 +627,8 @@ static void wave_in_test_device(UINT_PTR device)
rc
=
waveInOpen
(
&
win
,
device
,
&
wfex
.
Format
,
0
,
0
,
CALLBACK_NULL
|
WAVE_FORMAT_DIRECT
);
ok
(
rc
==
MMSYSERR_NOERROR
||
rc
==
WAVERR_BADFORMAT
||
rc
==
MMSYSERR_INVALFLAG
||
rc
==
MMSYSERR_INVALPARAM
,
rc
==
MMSYSERR_INVALFLAG
||
rc
==
MMSYSERR_INVALPARAM
||
rc
==
MMSYSERR_ALLOCATED
,
"waveInOpen(%s): returned: %s
\n
"
,
dev_name
(
device
),
wave_in_error
(
rc
));
if
(
rc
==
MMSYSERR_NOERROR
)
{
waveInClose
(
win
);
...
...
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