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
e7e43b45
Commit
e7e43b45
authored
Jul 21, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm/tests: Use nameless unions/structs.
parent
e12e7a3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
mixer.c
dlls/winmm/tests/mixer.c
+22
-22
No files found.
dlls/winmm/tests/mixer.c
View file @
e7e43b45
...
...
@@ -202,7 +202,7 @@ static void mixer_test_controlA(HMIXEROBJ mix, MIXERCONTROLA *control)
details
.
cbStruct
=
sizeof
(
MIXERCONTROLDETAILS
);
details
.
dwControlID
=
control
->
dwControlID
;
details
.
cChannels
=
1
;
U
(
details
)
.
cMultipleItems
=
0
;
details
.
cMultipleItems
=
0
;
details
.
cbDetails
=
sizeof
(
value
);
/* test NULL paDetails */
...
...
@@ -224,7 +224,7 @@ static void mixer_test_controlA(HMIXEROBJ mix, MIXERCONTROLA *control)
trace
(
" Value=%ld
\n
"
,
value
.
dwValue
);
if
(
value
.
dwValue
+
control
->
Metrics
.
cSteps
<
S1
(
control
->
Bounds
)
.
dwMaximum
)
if
(
value
.
dwValue
+
control
->
Metrics
.
cSteps
<
control
->
Bounds
.
dwMaximum
)
new_value
.
dwValue
=
value
.
dwValue
+
control
->
Metrics
.
cSteps
;
else
new_value
.
dwValue
=
value
.
dwValue
-
control
->
Metrics
.
cSteps
;
...
...
@@ -232,7 +232,7 @@ static void mixer_test_controlA(HMIXEROBJ mix, MIXERCONTROLA *control)
new_details
.
cbStruct
=
sizeof
(
MIXERCONTROLDETAILS
);
new_details
.
dwControlID
=
control
->
dwControlID
;
new_details
.
cChannels
=
1
;
U
(
new_details
)
.
cMultipleItems
=
0
;
new_details
.
cMultipleItems
=
0
;
new_details
.
paDetails
=
&
new_value
;
new_details
.
cbDetails
=
sizeof
(
new_value
);
...
...
@@ -248,7 +248,7 @@ static void mixer_test_controlA(HMIXEROBJ mix, MIXERCONTROLA *control)
ret_details
.
cbStruct
=
sizeof
(
MIXERCONTROLDETAILS
);
ret_details
.
dwControlID
=
control
->
dwControlID
;
ret_details
.
cChannels
=
1
;
U
(
ret_details
)
.
cMultipleItems
=
0
;
ret_details
.
cMultipleItems
=
0
;
ret_details
.
paDetails
=
&
ret_value
;
ret_details
.
cbDetails
=
sizeof
(
ret_value
);
...
...
@@ -267,7 +267,7 @@ static void mixer_test_controlA(HMIXEROBJ mix, MIXERCONTROLA *control)
details
.
cbStruct
=
sizeof
(
MIXERCONTROLDETAILS
);
details
.
dwControlID
=
control
->
dwControlID
;
details
.
cChannels
=
1
;
U
(
details
)
.
cMultipleItems
=
0
;
details
.
cMultipleItems
=
0
;
details
.
paDetails
=
&
value
;
details
.
cbDetails
=
sizeof
(
value
);
...
...
@@ -289,7 +289,7 @@ static void mixer_test_controlA(HMIXEROBJ mix, MIXERCONTROLA *control)
details
.
cbStruct
=
sizeof
(
MIXERCONTROLDETAILS
);
details
.
dwControlID
=
control
->
dwControlID
;
details
.
cChannels
=
1
;
U
(
details
)
.
cMultipleItems
=
0
;
details
.
cMultipleItems
=
0
;
details
.
paDetails
=
&
value
;
details
.
cbDetails
=
sizeof
(
value
);
...
...
@@ -311,7 +311,7 @@ static void mixer_test_controlA(HMIXEROBJ mix, MIXERCONTROLA *control)
new_details
.
cbStruct
=
sizeof
(
MIXERCONTROLDETAILS
);
new_details
.
dwControlID
=
control
->
dwControlID
;
new_details
.
cChannels
=
1
;
U
(
new_details
)
.
cMultipleItems
=
0
;
new_details
.
cMultipleItems
=
0
;
new_details
.
paDetails
=
&
new_value
;
new_details
.
cbDetails
=
sizeof
(
new_value
);
...
...
@@ -327,7 +327,7 @@ static void mixer_test_controlA(HMIXEROBJ mix, MIXERCONTROLA *control)
ret_details
.
cbStruct
=
sizeof
(
MIXERCONTROLDETAILS
);
ret_details
.
dwControlID
=
control
->
dwControlID
;
ret_details
.
cChannels
=
1
;
U
(
ret_details
)
.
cMultipleItems
=
0
;
ret_details
.
cMultipleItems
=
0
;
ret_details
.
paDetails
=
&
ret_value
;
ret_details
.
cbDetails
=
sizeof
(
ret_value
);
...
...
@@ -346,7 +346,7 @@ static void mixer_test_controlA(HMIXEROBJ mix, MIXERCONTROLA *control)
details
.
cbStruct
=
sizeof
(
MIXERCONTROLDETAILS
);
details
.
dwControlID
=
control
->
dwControlID
;
details
.
cChannels
=
1
;
U
(
details
)
.
cMultipleItems
=
0
;
details
.
cMultipleItems
=
0
;
details
.
paDetails
=
&
value
;
details
.
cbDetails
=
sizeof
(
value
);
...
...
@@ -556,8 +556,8 @@ static void mixer_test_deviceA(int device)
control_flags
(
array
[
nc
].
fdwControl
));
trace
(
" Items=%ld Min=%ld Max=%ld Step=%ld
\n
"
,
array
[
nc
].
cMultipleItems
,
S1
(
array
[
nc
].
Bounds
)
.
dwMinimum
,
S1
(
array
[
nc
].
Bounds
)
.
dwMaximum
,
array
[
nc
].
Bounds
.
dwMinimum
,
array
[
nc
].
Bounds
.
dwMaximum
,
array
[
nc
].
Metrics
.
cSteps
);
}
...
...
@@ -588,7 +588,7 @@ static void mixer_test_controlW(HMIXEROBJ mix, MIXERCONTROLW *control)
details
.
cbStruct
=
sizeof
(
MIXERCONTROLDETAILS
);
details
.
dwControlID
=
control
->
dwControlID
;
details
.
cChannels
=
1
;
U
(
details
)
.
cMultipleItems
=
0
;
details
.
cMultipleItems
=
0
;
details
.
paDetails
=
&
value
;
details
.
cbDetails
=
sizeof
(
value
);
...
...
@@ -603,7 +603,7 @@ static void mixer_test_controlW(HMIXEROBJ mix, MIXERCONTROLW *control)
trace
(
" Value=%ld
\n
"
,
value
.
dwValue
);
if
(
value
.
dwValue
+
control
->
Metrics
.
cSteps
<
S1
(
control
->
Bounds
)
.
dwMaximum
)
if
(
value
.
dwValue
+
control
->
Metrics
.
cSteps
<
control
->
Bounds
.
dwMaximum
)
new_value
.
dwValue
=
value
.
dwValue
+
control
->
Metrics
.
cSteps
;
else
new_value
.
dwValue
=
value
.
dwValue
-
control
->
Metrics
.
cSteps
;
...
...
@@ -611,7 +611,7 @@ static void mixer_test_controlW(HMIXEROBJ mix, MIXERCONTROLW *control)
new_details
.
cbStruct
=
sizeof
(
MIXERCONTROLDETAILS
);
new_details
.
dwControlID
=
control
->
dwControlID
;
new_details
.
cChannels
=
1
;
U
(
new_details
)
.
cMultipleItems
=
0
;
new_details
.
cMultipleItems
=
0
;
new_details
.
paDetails
=
&
new_value
;
new_details
.
cbDetails
=
sizeof
(
new_value
);
...
...
@@ -627,7 +627,7 @@ static void mixer_test_controlW(HMIXEROBJ mix, MIXERCONTROLW *control)
ret_details
.
cbStruct
=
sizeof
(
MIXERCONTROLDETAILS
);
ret_details
.
dwControlID
=
control
->
dwControlID
;
ret_details
.
cChannels
=
1
;
U
(
ret_details
)
.
cMultipleItems
=
0
;
ret_details
.
cMultipleItems
=
0
;
ret_details
.
paDetails
=
&
ret_value
;
ret_details
.
cbDetails
=
sizeof
(
ret_value
);
...
...
@@ -646,7 +646,7 @@ static void mixer_test_controlW(HMIXEROBJ mix, MIXERCONTROLW *control)
details
.
cbStruct
=
sizeof
(
MIXERCONTROLDETAILS
);
details
.
dwControlID
=
control
->
dwControlID
;
details
.
cChannels
=
1
;
U
(
details
)
.
cMultipleItems
=
0
;
details
.
cMultipleItems
=
0
;
details
.
paDetails
=
&
value
;
details
.
cbDetails
=
sizeof
(
value
);
...
...
@@ -668,7 +668,7 @@ static void mixer_test_controlW(HMIXEROBJ mix, MIXERCONTROLW *control)
details
.
cbStruct
=
sizeof
(
MIXERCONTROLDETAILS
);
details
.
dwControlID
=
control
->
dwControlID
;
details
.
cChannels
=
1
;
U
(
details
)
.
cMultipleItems
=
0
;
details
.
cMultipleItems
=
0
;
details
.
paDetails
=
&
value
;
details
.
cbDetails
=
sizeof
(
value
);
...
...
@@ -690,7 +690,7 @@ static void mixer_test_controlW(HMIXEROBJ mix, MIXERCONTROLW *control)
new_details
.
cbStruct
=
sizeof
(
MIXERCONTROLDETAILS
);
new_details
.
dwControlID
=
control
->
dwControlID
;
new_details
.
cChannels
=
1
;
U
(
new_details
)
.
cMultipleItems
=
0
;
new_details
.
cMultipleItems
=
0
;
new_details
.
paDetails
=
&
new_value
;
new_details
.
cbDetails
=
sizeof
(
new_value
);
...
...
@@ -706,7 +706,7 @@ static void mixer_test_controlW(HMIXEROBJ mix, MIXERCONTROLW *control)
ret_details
.
cbStruct
=
sizeof
(
MIXERCONTROLDETAILS
);
ret_details
.
dwControlID
=
control
->
dwControlID
;
ret_details
.
cChannels
=
1
;
U
(
ret_details
)
.
cMultipleItems
=
0
;
ret_details
.
cMultipleItems
=
0
;
ret_details
.
paDetails
=
&
ret_value
;
ret_details
.
cbDetails
=
sizeof
(
ret_value
);
...
...
@@ -725,7 +725,7 @@ static void mixer_test_controlW(HMIXEROBJ mix, MIXERCONTROLW *control)
details
.
cbStruct
=
sizeof
(
MIXERCONTROLDETAILS
);
details
.
dwControlID
=
control
->
dwControlID
;
details
.
cChannels
=
1
;
U
(
details
)
.
cMultipleItems
=
0
;
details
.
cMultipleItems
=
0
;
details
.
paDetails
=
&
value
;
details
.
cbDetails
=
sizeof
(
value
);
...
...
@@ -959,8 +959,8 @@ static void mixer_test_deviceW(int device)
control_flags
(
array
[
nc
].
fdwControl
));
trace
(
" Items=%ld Min=%ld Max=%ld Step=%ld
\n
"
,
array
[
nc
].
cMultipleItems
,
S1
(
array
[
nc
].
Bounds
)
.
dwMinimum
,
S1
(
array
[
nc
].
Bounds
)
.
dwMaximum
,
array
[
nc
].
Bounds
.
dwMinimum
,
array
[
nc
].
Bounds
.
dwMaximum
,
array
[
nc
].
Metrics
.
cSteps
);
}
mixer_test_controlW
(
mix
,
&
array
[
nc
]);
...
...
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