Commit 101bf6c8 authored by Arkadiusz Hiler's avatar Arkadiusz Hiler Committed by Alexandre Julliard

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

parent 6719e6b2
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment