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

This commit is contained in:
Arkadiusz Hiler 2022-07-22 14:56:08 +03:00 committed by Alexandre Julliard
parent 6719e6b2d3
commit 101bf6c8bd

View file

@ -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 );