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
a1f52a95
Commit
a1f52a95
authored
Jul 30, 2023
by
Davide Beatrici
Committed by
Alexandre Julliard
Aug 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa: Remove GetPropValue.
parent
906ad69b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
46 deletions
+0
-46
mmdevdrv.c
dlls/winealsa.drv/mmdevdrv.c
+0
-45
winealsa.drv.spec
dlls/winealsa.drv/winealsa.drv.spec
+0
-1
No files found.
dlls/winealsa.drv/mmdevdrv.c
View file @
a1f52a95
...
...
@@ -286,48 +286,3 @@ BOOL WINAPI get_device_name_from_guid(GUID *guid, char **name, EDataFlow *flow)
return
FALSE
;
}
HRESULT
WINAPI
AUDDRV_GetPropValue
(
GUID
*
guid
,
const
PROPERTYKEY
*
prop
,
PROPVARIANT
*
out
)
{
struct
get_prop_value_params
params
;
char
*
name
;
EDataFlow
flow
;
unsigned
int
size
=
0
;
TRACE
(
"%s, (%s,%lu), %p
\n
"
,
wine_dbgstr_guid
(
guid
),
wine_dbgstr_guid
(
&
prop
->
fmtid
),
prop
->
pid
,
out
);
if
(
!
get_device_name_from_guid
(
guid
,
&
name
,
&
flow
))
{
WARN
(
"Unknown interface %s
\n
"
,
debugstr_guid
(
guid
));
return
E_NOINTERFACE
;
}
params
.
device
=
name
;
params
.
flow
=
flow
;
params
.
guid
=
guid
;
params
.
prop
=
prop
;
params
.
value
=
out
;
params
.
buffer
=
NULL
;
params
.
buffer_size
=
&
size
;
while
(
1
)
{
ALSA_CALL
(
get_prop_value
,
&
params
);
if
(
params
.
result
!=
E_NOT_SUFFICIENT_BUFFER
)
break
;
CoTaskMemFree
(
params
.
buffer
);
params
.
buffer
=
CoTaskMemAlloc
(
*
params
.
buffer_size
);
if
(
!
params
.
buffer
)
{
free
(
name
);
return
E_OUTOFMEMORY
;
}
}
if
(
FAILED
(
params
.
result
))
CoTaskMemFree
(
params
.
buffer
);
free
(
name
);
return
params
.
result
;
}
dlls/winealsa.drv/winealsa.drv.spec
View file @
a1f52a95
...
...
@@ -6,4 +6,3 @@
# MMDevAPI driver functions
@ stdcall -private get_device_name_from_guid(ptr ptr ptr) get_device_name_from_guid
@ stdcall -private GetEndpointIDs(long ptr ptr ptr ptr) AUDDRV_GetEndpointIDs
@ stdcall -private GetPropValue(ptr ptr ptr) AUDDRV_GetPropValue
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