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
c357f367
Commit
c357f367
authored
Oct 31, 2018
by
Brendan McGrath
Committed by
Alexandre Julliard
Oct 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput/tests: Test that the GUID is the same for Instance and Product.
Signed-off-by:
Brendan McGrath
<
brendan@redmandi.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
73c0ec29
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
dinput.c
dlls/dinput/tests/dinput.c
+11
-0
dinput.c
dlls/dinput8/tests/dinput.c
+11
-0
No files found.
dlls/dinput/tests/dinput.c
View file @
c357f367
...
...
@@ -392,6 +392,17 @@ static BOOL CALLBACK enum_devices_callback(const DIDEVICEINSTANCEA *instance, vo
{
struct
enum_devices_test
*
enum_test
=
context
;
if
((
instance
->
dwDevType
&
0xff
)
==
DIDEVTYPE_KEYBOARD
||
(
instance
->
dwDevType
&
0xff
)
==
DIDEVTYPE_MOUSE
)
{
const
char
*
device
=
((
instance
->
dwDevType
&
0xff
)
==
DIDEVTYPE_KEYBOARD
)
?
"Keyboard"
:
"Mouse"
;
todo_wine
ok
(
IsEqualGUID
(
&
instance
->
guidInstance
,
&
instance
->
guidProduct
),
"%s guidInstance (%s) does not match guidProduct (%s)
\n
"
,
device
,
wine_dbgstr_guid
(
&
instance
->
guidInstance
),
wine_dbgstr_guid
(
&
instance
->
guidProduct
));
}
enum_test
->
device_count
++
;
return
enum_test
->
return_value
;
}
...
...
dlls/dinput8/tests/dinput.c
View file @
c357f367
...
...
@@ -377,6 +377,17 @@ static BOOL CALLBACK enum_devices_callback(const DIDEVICEINSTANCEA *instance, vo
instance
->
wUsagePage
,
instance
->
wUsage
);
if
((
instance
->
dwDevType
&
0xff
)
==
DI8DEVTYPE_KEYBOARD
||
(
instance
->
dwDevType
&
0xff
)
==
DI8DEVTYPE_MOUSE
)
{
const
char
*
device
=
((
instance
->
dwDevType
&
0xff
)
==
DI8DEVTYPE_KEYBOARD
)
?
"Keyboard"
:
"Mouse"
;
todo_wine
ok
(
IsEqualGUID
(
&
instance
->
guidInstance
,
&
instance
->
guidProduct
),
"%s guidInstance (%s) does not match guidProduct (%s)
\n
"
,
device
,
wine_dbgstr_guid
(
&
instance
->
guidInstance
),
wine_dbgstr_guid
(
&
instance
->
guidProduct
));
}
enum_test
->
device_count
++
;
return
enum_test
->
return_value
;
}
...
...
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