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
55b48ff6
Commit
55b48ff6
authored
Feb 21, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Mar 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi: Implement IMMDeviceEnumerator::GetDevice.
parent
d53dc08e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
devenum.c
dlls/mmdevapi/devenum.c
+24
-2
No files found.
dlls/mmdevapi/devenum.c
View file @
55b48ff6
...
...
@@ -809,9 +809,31 @@ static HRESULT WINAPI MMDevEnum_GetDefaultAudioEndpoint(IMMDeviceEnumerator *ifa
static
HRESULT
WINAPI
MMDevEnum_GetDevice
(
IMMDeviceEnumerator
*
iface
,
const
WCHAR
*
name
,
IMMDevice
**
device
)
{
MMDevEnumImpl
*
This
=
(
MMDevEnumImpl
*
)
iface
;
DWORD
i
=
0
;
IMMDevice
*
dev
=
NULL
;
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_w
(
name
),
device
);
FIXME
(
"stub
\n
"
);
return
E_NOTIMPL
;
for
(
i
=
0
;
i
<
MMDevice_count
;
++
i
)
{
WCHAR
*
str
;
dev
=
(
IMMDevice
*
)
MMDevice_head
[
i
];
IMMDevice_GetId
(
dev
,
&
str
);
if
(
str
&&
!
lstrcmpW
(
str
,
name
))
{
CoTaskMemFree
(
str
);
break
;
}
CoTaskMemFree
(
str
);
}
if
(
dev
)
{
IUnknown_AddRef
(
dev
);
*
device
=
dev
;
return
S_OK
;
}
WARN
(
"Could not find device %s
\n
"
,
debugstr_w
(
name
));
return
E_NOTFOUND
;
}
static
HRESULT
WINAPI
MMDevEnum_RegisterEndpointNotificationCallback
(
IMMDeviceEnumerator
*
iface
,
IMMNotificationClient
*
client
)
...
...
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