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>
This commit is contained in:
parent
a4fe643920
commit
98a0a75610
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue