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
6299544c
Commit
6299544c
authored
Jan 17, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Jan 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi: Dump device id in test.
parent
abd9627d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
mmdevenum.c
dlls/mmdevapi/tests/mmdevenum.c
+12
-0
No files found.
dlls/mmdevapi/tests/mmdevenum.c
View file @
6299544c
...
...
@@ -90,6 +90,18 @@ static void test_collection(IMMDeviceEnumerator *mme, IMMDeviceCollection *col)
hr
=
IMMDeviceCollection_Item
(
col
,
0
,
&
dev
);
ok
(
hr
==
S_OK
,
"Valid Item returned 0x%08x
\n
"
,
hr
);
ok
(
dev
!=
NULL
,
"Device is null!
\n
"
);
if
(
dev
!=
NULL
)
{
char
temp
[
128
];
WCHAR
*
id
=
NULL
;
if
(
IMMDevice_GetId
(
dev
,
&
id
)
==
S_OK
)
{
temp
[
sizeof
(
temp
)
-
1
]
=
0
;
WideCharToMultiByte
(
CP_ACP
,
0
,
id
,
-
1
,
temp
,
sizeof
(
temp
)
-
1
,
NULL
,
NULL
);
trace
(
"Device found: %s
\n
"
,
temp
);
CoTaskMemFree
(
id
);
}
}
if
(
dev
)
IUnknown_Release
(
dev
);
}
...
...
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