mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 09:21:14 +00:00
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@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
58abb3518c
commit
51895145fd
1 changed files with 0 additions and 2 deletions
|
@ -93,7 +93,6 @@ static void test_acquire(IDirectInputA *pDI, HWND hwnd)
|
||||||
DIPROPDWORD di_op;
|
DIPROPDWORD di_op;
|
||||||
DIDEVICEOBJECTDATA mouse_state;
|
DIDEVICEOBJECTDATA mouse_state;
|
||||||
DWORD cnt;
|
DWORD cnt;
|
||||||
MSG msg;
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (! SetForegroundWindow(hwnd))
|
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,
|
hwnd2 = CreateWindowA("static", "Temporary", WS_VISIBLE, 10, 210, 200, 200, NULL, NULL, NULL,
|
||||||
NULL);
|
NULL);
|
||||||
ok(hwnd2 != NULL, "CreateWindowA failed with %u\n", GetLastError());
|
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);
|
hr = IDirectInputDevice_GetDeviceState(pMouse, sizeof(m_state), &m_state);
|
||||||
ok(hr == DIERR_NOTACQUIRED, "GetDeviceState() should have failed: %08x\n", hr);
|
ok(hr == DIERR_NOTACQUIRED, "GetDeviceState() should have failed: %08x\n", hr);
|
||||||
|
|
Loading…
Reference in a new issue