Module: wine Branch: master Commit: 98a0a7561042e584a861f598a438f1f5adaf659c URL: https://source.winehq.org/git/wine.git/?a=commit;h=98a0a7561042e584a861f598a...
Author: Rémi Bernon rbernon@codeweavers.com Date: Tue Nov 16 08:23:35 2021 +0100
dinput8/tests: Make sure SetCooperativeLevel window is foreground.
This should prevent spurious failures on Windows.
Signed-off-by: Rémi Bernon rbernon@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/dinput8/tests/hid.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/dinput8/tests/hid.c b/dlls/dinput8/tests/hid.c index 007f81688cc..9ec9d147dd1 100644 --- a/dlls/dinput8/tests/hid.c +++ b/dlls/dinput8/tests/hid.c @@ -4267,6 +4267,7 @@ static void test_simple_joystick(void)
hwnd = CreateWindowW( L"static", L"dinput", WS_OVERLAPPEDWINDOW | WS_VISIBLE, 10, 10, 200, 200, NULL, NULL, NULL, NULL ); + SetForegroundWindow( hwnd );
hr = IDirectInputDevice8_SetCooperativeLevel( device, hwnd, DISCL_FOREGROUND | DISCL_NONEXCLUSIVE ); ok( hr == DI_OK, "SetCooperativeLevel returned: %#x\n", hr );