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
8b934f03
Commit
8b934f03
authored
Mar 23, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: Use nameless unions.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
536de62c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
Makefile.in
programs/winecfg/Makefile.in
+0
-1
audio.c
programs/winecfg/audio.c
+10
-10
No files found.
programs/winecfg/Makefile.in
View file @
8b934f03
MODULE
=
winecfg.exe
APPMODE
=
-mwindows
IMPORTS
=
uuid comdlg32 comctl32 shell32 ole32 winmm shlwapi uxtheme user32 gdi32 advapi32
EXTRADEFS
=
-DWINE_NO_NAMELESS_EXTENSION
C_SRCS
=
\
about.c
\
...
...
programs/winecfg/audio.c
View file @
8b934f03
...
...
@@ -125,7 +125,7 @@ static BOOL load_device(IMMDevice *dev, struct DeviceInfo *info)
if
(
SUCCEEDED
(
hr
)
&&
pv
.
vt
==
VT_UI4
){
i
=
0
;
while
(
speaker_configs
[
i
].
text_id
!=
0
)
{
if
((
speaker_configs
[
i
].
speaker_mask
&
pv
.
u
.
u
lVal
)
==
speaker_configs
[
i
].
speaker_mask
)
{
if
((
speaker_configs
[
i
].
speaker_mask
&
pv
.
ulVal
)
==
speaker_configs
[
i
].
speaker_mask
)
{
info
->
speaker_config
=
i
;
break
;
}
...
...
@@ -247,10 +247,10 @@ static void initAudioDlg (HWND hDlg)
load_devices
(
devenum
,
eCapture
,
&
num_capture_devs
,
&
capture_devs
);
PropVariantInit
(
&
pv
);
if
(
get_driver_name
(
devenum
,
&
pv
)
&&
pv
.
u
.
pwszVal
[
0
]
!=
'\0'
){
if
(
get_driver_name
(
devenum
,
&
pv
)
&&
pv
.
pwszVal
[
0
]
!=
'\0'
){
have_driver
=
TRUE
;
wnsprintfW
(
display_str
,
ARRAY_SIZE
(
display_str
),
format_str
,
pv
.
u
.
pwszVal
);
lstrcatW
(
g_drv_keyW
,
pv
.
u
.
pwszVal
);
wnsprintfW
(
display_str
,
ARRAY_SIZE
(
display_str
),
format_str
,
pv
.
pwszVal
);
lstrcatW
(
g_drv_keyW
,
pv
.
pwszVal
);
}
PropVariantClear
(
&
pv
);
...
...
@@ -315,7 +315,7 @@ static void initAudioDlg (HWND hDlg)
continue
;
SendDlgItemMessageW
(
hDlg
,
IDC_AUDIOOUT_DEVICE
,
CB_ADDSTRING
,
0
,
(
LPARAM
)
render_devs
[
i
].
name
.
u
.
pwszVal
);
0
,
(
LPARAM
)
render_devs
[
i
].
name
.
pwszVal
);
SendDlgItemMessageW
(
hDlg
,
IDC_AUDIOOUT_DEVICE
,
CB_SETITEMDATA
,
i
+
1
,
(
LPARAM
)
&
render_devs
[
i
]);
...
...
@@ -325,7 +325,7 @@ static void initAudioDlg (HWND hDlg)
}
SendDlgItemMessageW
(
hDlg
,
IDC_VOICEOUT_DEVICE
,
CB_ADDSTRING
,
0
,
(
LPARAM
)
render_devs
[
i
].
name
.
u
.
pwszVal
);
0
,
(
LPARAM
)
render_devs
[
i
].
name
.
pwszVal
);
SendDlgItemMessageW
(
hDlg
,
IDC_VOICEOUT_DEVICE
,
CB_SETITEMDATA
,
i
+
1
,
(
LPARAM
)
&
render_devs
[
i
]);
if
(
reg_vout_dev
&&
!
lstrcmpW
(
render_devs
[
i
].
id
,
reg_vout_dev
))
...
...
@@ -334,7 +334,7 @@ static void initAudioDlg (HWND hDlg)
lvitem
.
mask
=
LVIF_TEXT
|
LVIF_PARAM
;
lvitem
.
iItem
=
i
;
lvitem
.
iSubItem
=
0
;
lvitem
.
pszText
=
render_devs
[
i
].
name
.
u
.
pwszVal
;
lvitem
.
pszText
=
render_devs
[
i
].
name
.
pwszVal
;
lvitem
.
cchTextMax
=
lstrlenW
(
lvitem
.
pszText
);
lvitem
.
lParam
=
(
LPARAM
)
&
render_devs
[
i
];
...
...
@@ -357,14 +357,14 @@ static void initAudioDlg (HWND hDlg)
continue
;
SendDlgItemMessageW
(
hDlg
,
IDC_AUDIOIN_DEVICE
,
CB_ADDSTRING
,
0
,
(
LPARAM
)
capture_devs
[
i
].
name
.
u
.
pwszVal
);
0
,
(
LPARAM
)
capture_devs
[
i
].
name
.
pwszVal
);
SendDlgItemMessageW
(
hDlg
,
IDC_AUDIOIN_DEVICE
,
CB_SETITEMDATA
,
i
+
1
,
(
LPARAM
)
&
capture_devs
[
i
]);
if
(
reg_in_dev
&&
!
lstrcmpW
(
capture_devs
[
i
].
id
,
reg_in_dev
))
SendDlgItemMessageW
(
hDlg
,
IDC_AUDIOIN_DEVICE
,
CB_SETCURSEL
,
i
+
1
,
0
);
SendDlgItemMessageW
(
hDlg
,
IDC_VOICEIN_DEVICE
,
CB_ADDSTRING
,
0
,
(
LPARAM
)
capture_devs
[
i
].
name
.
u
.
pwszVal
);
0
,
(
LPARAM
)
capture_devs
[
i
].
name
.
pwszVal
);
SendDlgItemMessageW
(
hDlg
,
IDC_VOICEIN_DEVICE
,
CB_SETITEMDATA
,
i
+
1
,
(
LPARAM
)
&
capture_devs
[
i
]);
if
(
reg_vin_dev
&&
!
lstrcmpW
(
capture_devs
[
i
].
id
,
reg_vin_dev
))
...
...
@@ -447,7 +447,7 @@ static void apply_speaker_configs(void)
continue
;
}
pv
.
u
.
u
lVal
=
speaker_configs
[
render_devs
[
i
].
speaker_config
].
speaker_mask
;
pv
.
ulVal
=
speaker_configs
[
render_devs
[
i
].
speaker_config
].
speaker_mask
;
hr
=
IPropertyStore_SetValue
(
ps
,
&
PKEY_AudioEndpoint_PhysicalSpeakers
,
&
pv
);
...
...
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