X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=rostests%2Fwinetests%2Fdinput%2Fmouse.c;h=cf12807ddbf926a9fb47651a2f884c25d7d34c48;hp=7a51deb741c3e50e6718ef398512c0128d235c18;hb=0e6c0cd8777a60609af4bd189c8260dd204180f1;hpb=6130b8208be87689133c65ba539449abe5f91061 diff --git a/rostests/winetests/dinput/mouse.c b/rostests/winetests/dinput/mouse.c index 7a51deb741c..cf12807ddbf 100644 --- a/rostests/winetests/dinput/mouse.c +++ b/rostests/winetests/dinput/mouse.c @@ -97,6 +97,7 @@ static void test_acquire(IDirectInputA *pDI, HWND hwnd) DIPROPDWORD di_op; DIDEVICEOBJECTDATA mouse_state; DWORD cnt; + MSG msg; int i; if (! SetForegroundWindow(hwnd)) @@ -134,6 +135,8 @@ static void test_acquire(IDirectInputA *pDI, HWND hwnd) * loose mouse input */ 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);