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
850a2611
Commit
850a2611
authored
Aug 10, 2022
by
Davide Beatrici
Committed by
Alexandre Julliard
Aug 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winepulse: Adapt "endpoint" struct to mmdevapi's.
parent
4f00a1f9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
mmdevdrv.c
dlls/winepulse.drv/mmdevdrv.c
+1
-1
pulse.c
dlls/winepulse.drv/pulse.c
+1
-1
unixlib.h
dlls/winepulse.drv/unixlib.h
+1
-1
No files found.
dlls/winepulse.drv/mmdevdrv.c
View file @
850a2611
...
...
@@ -456,7 +456,7 @@ HRESULT WINAPI AUDDRV_GetEndpointIDs(EDataFlow flow, WCHAR ***ids_out, GUID **ke
for
(
i
=
0
;
i
<
params
.
num
;
i
++
)
{
WCHAR
*
name
=
(
WCHAR
*
)((
char
*
)
params
.
endpoints
+
params
.
endpoints
[
i
].
name
);
char
*
pulse_name
=
(
char
*
)
params
.
endpoints
+
params
.
endpoints
[
i
].
pulse_nam
e
;
char
*
pulse_name
=
(
char
*
)
params
.
endpoints
+
params
.
endpoints
[
i
].
devic
e
;
unsigned
int
size
=
(
wcslen
(
name
)
+
1
)
*
sizeof
(
WCHAR
);
if
(
!
(
ids
[
i
]
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
)))
{
...
...
dlls/winepulse.drv/pulse.c
View file @
850a2611
...
...
@@ -268,7 +268,7 @@ static NTSTATUS pulse_get_endpoint_ids(void *args)
endpoint
->
name
=
offset
;
memcpy
((
char
*
)
params
->
endpoints
+
offset
,
dev
->
name
,
name_len
*
sizeof
(
WCHAR
));
offset
+=
name_len
*
sizeof
(
WCHAR
);
endpoint
->
pulse_nam
e
=
offset
;
endpoint
->
devic
e
=
offset
;
memcpy
((
char
*
)
params
->
endpoints
+
offset
,
dev
->
pulse_name
,
len
);
offset
+=
(
len
+
1
)
&
~
1
;
endpoint
++
;
...
...
dlls/winepulse.drv/unixlib.h
View file @
850a2611
...
...
@@ -32,7 +32,7 @@ enum phys_device_bus_type {
struct
endpoint
{
unsigned
int
name
;
unsigned
int
pulse_nam
e
;
unsigned
int
devic
e
;
};
struct
main_loop_params
...
...
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