https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c557dfb7b8959ca2af0e8…
commit c557dfb7b8959ca2af0e80d2f036100c3724ab67
Author: Amine Khaldi <amine.khaldi(a)reactos.org>
AuthorDate: Sun Jan 21 22:27:32 2018 +0100
Commit: Amine Khaldi <amine.khaldi(a)reactos.org>
CommitDate: Sun Jan 21 22:27:32 2018 +0100
[DINPUT_WINETEST] Sync with Wine 3.0. CORE-14225
---
modules/rostests/winetests/dinput/mouse.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/modules/rostests/winetests/dinput/mouse.c
b/modules/rostests/winetests/dinput/mouse.c
index 5c7209ccab..791300db2d 100644
--- a/modules/rostests/winetests/dinput/mouse.c
+++ b/modules/rostests/winetests/dinput/mouse.c
@@ -19,6 +19,7 @@
#include "precomp.h"
+
static const HRESULT SetCoop_null_window[16] = {
E_INVALIDARG, E_INVALIDARG, E_INVALIDARG, E_INVALIDARG,
E_INVALIDARG, E_HANDLE, E_HANDLE, E_INVALIDARG,
@@ -82,7 +83,6 @@ static void test_acquire(IDirectInputA *pDI, HWND hwnd)
DIPROPDWORD di_op;
DIDEVICEOBJECTDATA mouse_state;
DWORD cnt;
- MSG msg;
int i;
if (! SetForegroundWindow(hwnd))
@@ -121,12 +121,9 @@ 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);
- /* Workaround so we can test other things. Remove when Wine is fixed */
- IDirectInputDevice_Unacquire(pMouse);
hr = IDirectInputDevice_Acquire(pMouse);
ok(hr == DIERR_OTHERAPPHASPRIO, "Acquire() should have failed: %08x\n",
hr);