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
23c26982
Commit
23c26982
authored
Aug 22, 2011
by
Andrew Eikum
Committed by
Alexandre Julliard
Aug 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi: Disable sound if the user explicitly selects no driver.
This also tweaks the no-driver behavior to report 0 active devices instead of returning an error code.
parent
7d469430
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
devenum.c
dlls/mmdevapi/devenum.c
+3
-3
main.c
dlls/mmdevapi/main.c
+4
-1
No files found.
dlls/mmdevapi/devenum.c
View file @
23c26982
...
...
@@ -445,6 +445,9 @@ static HRESULT load_driver_devices(EDataFlow flow)
UINT
num
,
def
,
i
;
HRESULT
hr
;
if
(
!
drvs
.
pGetEndpointIDs
)
return
S_OK
;
hr
=
drvs
.
pGetEndpointIDs
(
flow
,
&
ids
,
&
keys
,
&
num
,
&
def
);
if
(
FAILED
(
hr
))
return
hr
;
...
...
@@ -824,9 +827,6 @@ HRESULT MMDevEnum_Create(REFIID riid, void **ppv)
{
MMDevEnumImpl
*
This
=
MMDevEnumerator
;
if
(
!
drvs
.
pGetAudioEndpoint
)
return
AUDCLNT_E_SERVICE_NOT_RUNNING
;
if
(
!
This
)
{
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
This
));
...
...
dlls/mmdevapi/main.c
View file @
23c26982
...
...
@@ -104,9 +104,12 @@ static BOOL init_driver(void)
DWORD
size
=
sizeof
(
driver_name
);
if
(
RegQueryValueExW
(
key
,
drv_value
,
0
,
NULL
,
(
BYTE
*
)
driver_name
,
&
size
)
==
ERROR_SUCCESS
&&
driver_name
[
0
]
!=
'\0'
){
&
size
)
==
ERROR_SUCCESS
){
RegCloseKey
(
key
);
if
(
driver_name
[
0
]
==
'\0'
)
return
TRUE
;
for
(
next
=
p
=
driver_name
;
next
;
p
=
next
+
1
){
next
=
strchrW
(
p
,
','
);
if
(
next
)
...
...
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