Zebediah Figura : dinput/tests: Don't pump messages in test_acquire().
Alexandre Julliard
julliard at winehq.org
Sun Mar 18 09:02:31 CDT 2018
Module: wine
Branch: oldstable
Commit: 292e43263f60c602ae35658f29cba3eda85272e8
URL: https://source.winehq.org/git/wine.git/?a=commit;h=292e43263f60c602ae35658f29cba3eda85272e8
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Fri Nov 3 17:26:59 2017 -0500
dinput/tests: Don't pump messages in test_acquire().
This causes intermittent failures due to implementation of our window drivers.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 51895145fd67d3dd055888caaba7af413e4753f6)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/dinput/tests/mouse.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/dlls/dinput/tests/mouse.c b/dlls/dinput/tests/mouse.c
index 262ed0e..0f9e375 100644
--- a/dlls/dinput/tests/mouse.c
+++ b/dlls/dinput/tests/mouse.c
@@ -93,7 +93,6 @@ static void test_acquire(IDirectInputA *pDI, HWND hwnd)
DIPROPDWORD di_op;
DIDEVICEOBJECTDATA mouse_state;
DWORD cnt;
- MSG msg;
int i;
if (! SetForegroundWindow(hwnd))
@@ -132,7 +131,6 @@ static void test_acquire(IDirectInputA *pDI, HWND hwnd)
hwnd2 = CreateWindowA("static", "Temporary", WS_VISIBLE, 10, 210, 200, 200, NULL, NULL, NULL,
NULL);
ok(hwnd2 != NULL, "CreateWindowA failed with %u\n", GetLastError());
- while (PeekMessageA(&msg, 0, 0, 0, PM_REMOVE)) DispatchMessageA(&msg);
hr = IDirectInputDevice_GetDeviceState(pMouse, sizeof(m_state), &m_state);
ok(hr == DIERR_NOTACQUIRED, "GetDeviceState() should have failed: %08x\n", hr);
More information about the wine-cvs
mailing list