Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
05552097
Commit
05552097
authored
Oct 07, 2019
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Oct 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput/tests: Add checks for Acquire/Unacquire.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
47ec8ce9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
mouse.c
dlls/dinput/tests/mouse.c
+9
-4
No files found.
dlls/dinput/tests/mouse.c
View file @
05552097
...
...
@@ -148,15 +148,20 @@ static void test_acquire(IDirectInputA *pDI, HWND hwnd)
ok
(
hr
==
S_OK
&&
cnt
>
0
,
"GetDeviceData() failed: %08x cnt:%d
\n
"
,
hr
,
cnt
);
mouse_event
(
MOUSEEVENTF_MOVE
,
10
,
10
,
0
,
0
);
IDirectInputDevice_Unacquire
(
pMouse
);
hr
=
IDirectInputDevice_Unacquire
(
pMouse
);
ok
(
hr
==
S_OK
,
"Failed: %08x
\n
"
,
hr
);
cnt
=
1
;
hr
=
IDirectInputDevice_GetDeviceData
(
pMouse
,
sizeof
(
mouse_state
),
&
mouse_state
,
&
cnt
,
0
);
ok
(
hr
==
S_OK
&&
cnt
>
0
,
"GetDeviceData() failed: %08x cnt:%d
\n
"
,
hr
,
cnt
);
IDirectInputDevice_Acquire
(
pMouse
);
hr
=
IDirectInputDevice_Acquire
(
pMouse
);
ok
(
hr
==
S_OK
,
"Failed: %08x
\n
"
,
hr
);
mouse_event
(
MOUSEEVENTF_MOVE
,
10
,
10
,
0
,
0
);
IDirectInputDevice_Unacquire
(
pMouse
);
IDirectInputDevice_Acquire
(
pMouse
);
hr
=
IDirectInputDevice_Unacquire
(
pMouse
);
ok
(
hr
==
S_OK
,
"Failed: %08x
\n
"
,
hr
);
hr
=
IDirectInputDevice_Acquire
(
pMouse
);
ok
(
hr
==
S_OK
,
"Failed: %08x
\n
"
,
hr
);
cnt
=
1
;
hr
=
IDirectInputDevice_GetDeviceData
(
pMouse
,
sizeof
(
mouse_state
),
&
mouse_state
,
&
cnt
,
0
);
ok
(
hr
==
S_OK
&&
cnt
>
0
,
"GetDeviceData() failed: %08x cnt:%d
\n
"
,
hr
,
cnt
);
...
...
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