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
c04319e5
Commit
c04319e5
authored
Apr 02, 2023
by
Florian Will
Committed by
Alexandre Julliard
Apr 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput/tests: Add EnumObjects callback return value test.
parent
02876a4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
device8.c
dlls/dinput/tests/device8.c
+12
-0
No files found.
dlls/dinput/tests/device8.c
View file @
c04319e5
...
...
@@ -991,6 +991,13 @@ static BOOL CALLBACK check_object_count( const DIDEVICEOBJECTINSTANCEW *obj, voi
return
DIENUM_CONTINUE
;
}
static
BOOL
CALLBACK
check_object_count_bad_retval
(
const
DIDEVICEOBJECTINSTANCEW
*
obj
,
void
*
args
)
{
DWORD
*
count
=
args
;
*
count
=
*
count
+
1
;
return
-
1
;
/* Invalid, but should CONTINUE. Only explicit DIENUM_STOP will stop enumeration. */
}
static
void
test_sys_mouse
(
DWORD
version
)
{
const
DIDEVCAPS
expect_caps
=
...
...
@@ -1336,6 +1343,11 @@ static void test_sys_mouse( DWORD version )
ok
(
check_objects_params
.
index
>=
check_objects_params
.
expect_count
,
"missing %u objects
\n
"
,
check_objects_params
.
expect_count
-
check_objects_params
.
index
);
res
=
0
;
hr
=
IDirectInputDevice8_EnumObjects
(
device
,
check_object_count_bad_retval
,
&
res
,
DIDFT_AXIS
);
ok
(
hr
==
DI_OK
,
"EnumObjects returned %#lx
\n
"
,
hr
);
todo_wine
ok
(
res
==
3
,
"got %lu expected 3
\n
"
,
res
);
objinst
.
dwSize
=
sizeof
(
DIDEVICEOBJECTINSTANCEW
);
res
=
MAKELONG
(
HID_USAGE_GENERIC_X
,
HID_USAGE_PAGE_GENERIC
);
hr
=
IDirectInputDevice8_GetObjectInfo
(
device
,
&
objinst
,
res
,
DIPH_BYUSAGE
);
...
...
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