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
ea4edbe1
Commit
ea4edbe1
authored
Dec 06, 2016
by
Bruno Jesus
Committed by
Alexandre Julliard
Dec 07, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xinput1_3/tests: Test the GUIDs returned from XInputGetDSoundAudioDeviceGuids.
Signed-off-by:
Bruno Jesus
<
00cpxxx@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b5646efe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
xinput.c
dlls/xinput1_3/tests/xinput.c
+15
-2
No files found.
dlls/xinput1_3/tests/xinput.c
View file @
ea4edbe1
...
...
@@ -175,18 +175,31 @@ static void test_get_dsoundaudiodevice(void)
{
DWORD
controllerNum
;
DWORD
result
;
GUID
soundRender
;
GUID
soundCapture
;
GUID
soundRender
,
soundCapture
;
GUID
testGuid
=
{
0xFFFFFFFF
,
0xFFFF
,
0xFFFF
,
{
0xFF
,
0xFF
,
0xFF
,
0xFF
,
0xFF
,
0xFF
,
0xFF
,
0xFF
}};
GUID
emptyGuid
=
{
0x0
,
0x0
,
0x0
,
{
0x0
,
0x0
,
0x0
,
0x0
,
0x0
,
0x0
,
0x0
,
0x0
}};
for
(
controllerNum
=
0
;
controllerNum
<
XUSER_MAX_COUNT
;
controllerNum
++
)
{
soundRender
=
soundCapture
=
testGuid
;
result
=
pXInputGetDSoundAudioDeviceGuids
(
controllerNum
,
&
soundRender
,
&
soundCapture
);
ok
(
result
==
ERROR_SUCCESS
||
result
==
ERROR_DEVICE_NOT_CONNECTED
,
"XInputGetDSoundAudioDeviceGuids failed with (%d)
\n
"
,
result
);
if
(
ERROR_DEVICE_NOT_CONNECTED
==
result
)
{
skip
(
"Controller %d is not connected
\n
"
,
controllerNum
);
continue
;
}
if
(
!
IsEqualGUID
(
&
soundRender
,
&
emptyGuid
))
ok
(
!
IsEqualGUID
(
&
soundRender
,
&
testGuid
),
"Broken GUID returned for sound render device
\n
"
);
else
trace
(
"Headset phone not attached
\n
"
);
if
(
!
IsEqualGUID
(
&
soundCapture
,
&
emptyGuid
))
ok
(
!
IsEqualGUID
(
&
soundCapture
,
&
testGuid
),
"Broken GUID returned for sound capture device
\n
"
);
else
trace
(
"Headset microphone not attached
\n
"
);
}
result
=
pXInputGetDSoundAudioDeviceGuids
(
XUSER_MAX_COUNT
+
1
,
&
soundRender
,
&
soundCapture
);
...
...
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