Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
5a40c65c
Commit
5a40c65c
authored
Oct 15, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Oct 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput/tests: Fix a few intermittent test failures.
parent
2cc7fe21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
mouse.c
dlls/dinput/tests/mouse.c
+7
-2
No files found.
dlls/dinput/tests/mouse.c
View file @
5a40c65c
...
...
@@ -71,6 +71,7 @@ static void test_acquire(LPDIRECTINPUT pDI, HWND hwnd)
HRESULT
hr
;
LPDIRECTINPUTDEVICE
pMouse
=
NULL
;
DIMOUSESTATE
m_state
;
HWND
hwnd2
;
hr
=
IDirectInput_CreateDevice
(
pDI
,
&
GUID_SysMouse
,
&
pMouse
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"IDirectInput_CreateDevice() failed: %08x
\n
"
,
hr
);
...
...
@@ -89,8 +90,10 @@ static void test_acquire(LPDIRECTINPUT pDI, HWND hwnd)
ok
(
hr
==
S_FALSE
,
"IDirectInputDevice_Acquire() should have failed: %08x
\n
"
,
hr
);
/* Foreground coop level requires window to have focus */
/* This should make dinput loose mouse input */
SetActiveWindow
(
0
);
/* Create a temporary window, this should make dinput
* loose mouse input */
hwnd2
=
CreateWindow
(
"static"
,
"Temporary"
,
WS_VISIBLE
,
10
,
210
,
200
,
200
,
NULL
,
NULL
,
NULL
,
NULL
);
hr
=
IDirectInputDevice_GetDeviceState
(
pMouse
,
sizeof
(
m_state
),
&
m_state
);
ok
(
hr
==
DIERR_NOTACQUIRED
,
"GetDeviceState() should have failed: %08x
\n
"
,
hr
);
...
...
@@ -105,6 +108,8 @@ static void test_acquire(LPDIRECTINPUT pDI, HWND hwnd)
ok
(
hr
==
S_OK
,
"Acquire() failed: %08x
\n
"
,
hr
);
if
(
pMouse
)
IUnknown_Release
(
pMouse
);
DestroyWindow
(
hwnd2
);
}
static
void
mouse_tests
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment