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
dfc05649
Commit
dfc05649
authored
Dec 05, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm/tests: Don't mess with the mixer controls in non-interactive mode.
parent
f4ec0a20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
mixer.c
dlls/winmm/tests/mixer.c
+8
-12
No files found.
dlls/winmm/tests/mixer.c
View file @
dfc05649
...
...
@@ -195,12 +195,11 @@ static void mixer_test_controlA(HMIXER mix, LPMIXERCONTROLA control)
ok
(
rc
==
MMSYSERR_NOERROR
,
"mixerGetControlDetails(MIXER_GETCONTROLDETAILSF_VALUE): "
"MMSYSERR_NOERROR expected, got %s
\n
"
,
mmsys_error
(
rc
));
if
(
rc
==
MMSYSERR_NOERROR
)
{
if
(
rc
==
MMSYSERR_NOERROR
&&
winetest_interactive
)
{
MIXERCONTROLDETAILS
new_details
;
MIXERCONTROLDETAILS_UNSIGNED
new_value
;
if
(
winetest_interactive
)
trace
(
" Value=%d
\n
"
,
value
.
dwValue
);
trace
(
" Value=%d
\n
"
,
value
.
dwValue
);
if
(
value
.
dwValue
+
control
->
Metrics
.
cSteps
<
S1
(
control
->
Bounds
).
dwMaximum
)
new_value
.
dwValue
=
value
.
dwValue
+
control
->
Metrics
.
cSteps
;
...
...
@@ -275,12 +274,11 @@ static void mixer_test_controlA(HMIXER mix, LPMIXERCONTROLA control)
ok
(
rc
==
MMSYSERR_NOERROR
,
"mixerGetControlDetails(MIXER_GETCONTROLDETAILSF_VALUE): "
"MMSYSERR_NOERROR expected, got %s
\n
"
,
mmsys_error
(
rc
));
if
(
rc
==
MMSYSERR_NOERROR
)
{
if
(
rc
==
MMSYSERR_NOERROR
&&
winetest_interactive
)
{
MIXERCONTROLDETAILS
new_details
;
MIXERCONTROLDETAILS_BOOLEAN
new_value
;
if
(
winetest_interactive
)
trace
(
" Value=%d
\n
"
,
value
.
fValue
);
trace
(
" Value=%d
\n
"
,
value
.
fValue
);
if
(
value
.
fValue
==
FALSE
)
new_value
.
fValue
=
TRUE
;
...
...
@@ -584,12 +582,11 @@ static void mixer_test_controlW(HMIXER mix, LPMIXERCONTROLW control)
ok
(
rc
==
MMSYSERR_NOERROR
,
"mixerGetControlDetails(MIXER_GETCONTROLDETAILSF_VALUE): "
"MMSYSERR_NOERROR expected, got %s
\n
"
,
mmsys_error
(
rc
));
if
(
rc
==
MMSYSERR_NOERROR
)
{
if
(
rc
==
MMSYSERR_NOERROR
&&
winetest_interactive
)
{
MIXERCONTROLDETAILS
new_details
;
MIXERCONTROLDETAILS_UNSIGNED
new_value
;
if
(
winetest_interactive
)
trace
(
" Value=%d
\n
"
,
value
.
dwValue
);
trace
(
" Value=%d
\n
"
,
value
.
dwValue
);
if
(
value
.
dwValue
+
control
->
Metrics
.
cSteps
<
S1
(
control
->
Bounds
).
dwMaximum
)
new_value
.
dwValue
=
value
.
dwValue
+
control
->
Metrics
.
cSteps
;
...
...
@@ -664,12 +661,11 @@ static void mixer_test_controlW(HMIXER mix, LPMIXERCONTROLW control)
ok
(
rc
==
MMSYSERR_NOERROR
,
"mixerGetControlDetails(MIXER_GETCONTROLDETAILSF_VALUE): "
"MMSYSERR_NOERROR expected, got %s
\n
"
,
mmsys_error
(
rc
));
if
(
rc
==
MMSYSERR_NOERROR
)
{
if
(
rc
==
MMSYSERR_NOERROR
&&
winetest_interactive
)
{
MIXERCONTROLDETAILS
new_details
;
MIXERCONTROLDETAILS_BOOLEAN
new_value
;
if
(
winetest_interactive
)
trace
(
" Value=%d
\n
"
,
value
.
fValue
);
trace
(
" Value=%d
\n
"
,
value
.
fValue
);
if
(
value
.
fValue
==
FALSE
)
new_value
.
fValue
=
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