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
7fcca748
Commit
7fcca748
authored
Sep 16, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput8/tests: Add some HID joystick IDirectInputDevice8_SetDataFormat tests.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2972e997
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
hid.c
dlls/dinput8/tests/hid.c
+15
-0
No files found.
dlls/dinput8/tests/hid.c
View file @
7fcca748
...
...
@@ -3401,6 +3401,7 @@ static void test_simple_joystick(void)
};
WCHAR
cwd
[
MAX_PATH
],
tempdir
[
MAX_PATH
];
DIDEVICEINSTANCEW
devinst
=
{
0
};
DIDATAFORMAT
dataformat
=
{
0
};
IDirectInputDevice8W
*
device
;
DIDEVCAPS
caps
=
{
0
};
IDirectInput8W
*
di
;
...
...
@@ -3676,6 +3677,20 @@ static void test_simple_joystick(void)
todo_wine
ok
(
hr
==
DIERR_NOTINITIALIZED
,
"IDirectInputDevice8_GetProperty DIPROP_APPDATA returned %#x
\n
"
,
hr
);
hr
=
IDirectInputDevice8_SetDataFormat
(
device
,
NULL
);
ok
(
hr
==
E_POINTER
,
"IDirectInputDevice8_SetDataFormat returned: %#x
\n
"
,
hr
);
hr
=
IDirectInputDevice8_SetDataFormat
(
device
,
&
dataformat
);
ok
(
hr
==
DIERR_INVALIDPARAM
,
"IDirectInputDevice8_SetDataFormat returned: %#x
\n
"
,
hr
);
dataformat
.
dwSize
=
sizeof
(
DIDATAFORMAT
);
hr
=
IDirectInputDevice8_SetDataFormat
(
device
,
&
dataformat
);
todo_wine
ok
(
hr
==
DIERR_INVALIDPARAM
,
"IDirectInputDevice8_SetDataFormat returned: %#x
\n
"
,
hr
);
dataformat
.
dwObjSize
=
sizeof
(
DIOBJECTDATAFORMAT
);
hr
=
IDirectInputDevice8_SetDataFormat
(
device
,
&
dataformat
);
ok
(
hr
==
DI_OK
,
"IDirectInputDevice8_SetDataFormat returned: %#x
\n
"
,
hr
);
hr
=
IDirectInputDevice8_SetDataFormat
(
device
,
&
c_dfDIJoystick2
);
ok
(
hr
==
DI_OK
,
"IDirectInputDevice8_SetDataFormat returned: %#x
\n
"
,
hr
);
ref
=
IDirectInputDevice8_Release
(
device
);
ok
(
ref
==
0
,
"IDirectInputDeviceW_Release returned %d
\n
"
,
ref
);
...
...
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