Arkadiusz Hiler : dinput/tests: Assert that we can't get info about the third slider with c_dfDIJoystick2.

Alexandre Julliard julliard at winehq.org
Mon Jul 25 16:19:30 CDT 2022


Module: wine
Branch: master
Commit: 101bf6c8bd869462072c2bc5621ce5d61de11cc7
URL:    https://gitlab.winehq.org/wine/wine/-/commit/101bf6c8bd869462072c2bc5621ce5d61de11cc7

Author: Arkadiusz Hiler <ahiler at codeweavers.com>
Date:   Fri Jul 22 14:56:08 2022 +0300

dinput/tests: Assert that we can't get info about the third slider with c_dfDIJoystick2.

---

 dlls/dinput/tests/joystick8.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/dinput/tests/joystick8.c b/dlls/dinput/tests/joystick8.c
index 5eebcf87d44..cedf362d23e 100644
--- a/dlls/dinput/tests/joystick8.c
+++ b/dlls/dinput/tests/joystick8.c
@@ -3054,6 +3054,10 @@ static void test_many_axes_joystick(void)
     ok( hr == DI_OK, "GetObjectInfo returned: %#lx\n", hr );
     check_object( &objinst, &expect_objects[8], NULL );
 
+    /* c_dfDIJoystick2 is broken when it comes to more than two sliders */
+    hr = IDirectInputDevice8_GetObjectInfo( device, &objinst, offsetof(DIJOYSTATE2, rglVSlider[0]), DIPH_BYOFFSET );
+    ok( hr == DIERR_NOTFOUND, "GetObjectInfo returned: %#lx\n", hr );
+
     hr = IDirectInputDevice8_GetObjectInfo( device, &objinst, offsetof(DIJOYSTATE2, lVX), DIPH_BYOFFSET );
     ok( hr == DI_OK, "GetObjectInfo returned: %#lx\n", hr );
     check_object( &objinst, &expect_objects[10], &todo_flags );




More information about the wine-cvs mailing list