Rémi Bernon : dinput8/tests: Make sure SetCooperativeLevel window is foreground.
Alexandre Julliard
julliard at winehq.org
Tue Nov 16 16:32:26 CST 2021
Module: wine
Branch: master
Commit: 98a0a7561042e584a861f598a438f1f5adaf659c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=98a0a7561042e584a861f598a438f1f5adaf659c
Author: Rémi Bernon <rbernon at 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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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 );
More information about the wine-cvs
mailing list