Module: wine Branch: master Commit: eab7b95babd23654fe5ad57709d3aa9200fe2c61 URL: https://gitlab.winehq.org/wine/wine/-/commit/eab7b95babd23654fe5ad57709d3aa9...
Author: Rémi Bernon rbernon@codeweavers.com Date: Mon May 22 10:52:06 2023 +0200
dinput/tests: Test that FromGameController also works with IRawGameController.
---
dlls/dinput/tests/joystick8.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/dlls/dinput/tests/joystick8.c b/dlls/dinput/tests/joystick8.c index 60bee06479a..e336cc24c6d 100644 --- a/dlls/dinput/tests/joystick8.c +++ b/dlls/dinput/tests/joystick8.c @@ -5090,6 +5090,12 @@ static void test_windows_gaming_input(void) ok( tmp_raw_controller == raw_controller, "got unexpected IGameController interface\n" ); IRawGameController_Release( tmp_raw_controller );
+ hr = IRawGameControllerStatics_FromGameController( controller_statics, (IGameController *)raw_controller, &tmp_raw_controller ); + ok( hr == S_OK, "FromGameController returned %#lx\n", hr ); + todo_wine + ok( tmp_raw_controller == raw_controller, "got unexpected IGameController interface\n" ); + if (tmp_raw_controller) IRawGameController_Release( tmp_raw_controller ); + IGameController_Release( game_controller ); IRawGameController_Release( raw_controller );