mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 14:17:53 +00:00
[DINPUT_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70087
This commit is contained in:
parent
6130b8208b
commit
0e6c0cd877
1 changed files with 3 additions and 0 deletions
|
@ -97,6 +97,7 @@ 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))
|
||||||
|
@ -134,6 +135,8 @@ static void test_acquire(IDirectInputA *pDI, HWND hwnd)
|
||||||
* loose mouse input */
|
* loose mouse input */
|
||||||
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());
|
||||||
|
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…
Add table
Add a link
Reference in a new issue