Rémi Bernon : dinput/tests: Flush messages after creating the test_mouse_keyboard window.
Module: wine Branch: master Commit: 01e4c4335a981f420218b5fb68fb405f289e7b67 URL: https://gitlab.winehq.org/wine/wine/-/commit/01e4c4335a981f420218b5fb68fb405... Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Tue Mar 21 13:29:28 2023 +0100 dinput/tests: Flush messages after creating the test_mouse_keyboard window. Preventing spurious failures on some Windows 7 VMs. Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=54713 --- dlls/dinput/tests/device8.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/dinput/tests/device8.c b/dlls/dinput/tests/device8.c index c50f6e4681a..ea0ec8db837 100644 --- a/dlls/dinput/tests/device8.c +++ b/dlls/dinput/tests/device8.c @@ -549,6 +549,7 @@ static void test_mouse_keyboard(void) hwnd = CreateWindowExA(WS_EX_TOPMOST, "static", "dinput", WS_POPUP | WS_VISIBLE, 0, 0, 100, 100, NULL, NULL, NULL, NULL); ok(hwnd != NULL, "CreateWindowExA failed\n"); + flush_events(); hr = CoCreateInstance(&CLSID_DirectInput8, 0, CLSCTX_INPROC_SERVER, &IID_IDirectInput8A, (LPVOID*)&di); if (hr == DIERR_OLDDIRECTINPUTVERSION ||
participants (1)
-
Alexandre Julliard