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
2ed141d6
Commit
2ed141d6
authored
Jul 03, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Test opening raw input devices.
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
26982493
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
input.c
dlls/user32/tests/input.c
+9
-0
No files found.
dlls/user32/tests/input.c
View file @
2ed141d6
...
@@ -1625,6 +1625,7 @@ static void test_GetRawInputDeviceList(void)
...
@@ -1625,6 +1625,7 @@ static void test_GetRawInputDeviceList(void)
char
nameA
[
128
];
char
nameA
[
128
];
UINT
sz
,
len
;
UINT
sz
,
len
;
RID_DEVICE_INFO
info
;
RID_DEVICE_INFO
info
;
HANDLE
file
;
/* get required buffer size */
/* get required buffer size */
name
[
0
]
=
'\0'
;
name
[
0
]
=
'\0'
;
...
@@ -1664,6 +1665,14 @@ static void test_GetRawInputDeviceList(void)
...
@@ -1664,6 +1665,14 @@ static void test_GetRawInputDeviceList(void)
ok
(
ret
==
sizeof
(
info
),
"GetRawInputDeviceInfo gave wrong return: %d
\n
"
,
err
);
ok
(
ret
==
sizeof
(
info
),
"GetRawInputDeviceInfo gave wrong return: %d
\n
"
,
err
);
ok
(
sz
==
sizeof
(
info
),
"GetRawInputDeviceInfo set wrong size
\n
"
);
ok
(
sz
==
sizeof
(
info
),
"GetRawInputDeviceInfo set wrong size
\n
"
);
ok
(
info
.
dwType
==
devices
[
i
].
dwType
,
"GetRawInputDeviceInfo set wrong type: 0x%x
\n
"
,
info
.
dwType
);
ok
(
info
.
dwType
==
devices
[
i
].
dwType
,
"GetRawInputDeviceInfo set wrong type: 0x%x
\n
"
,
info
.
dwType
);
/* setupapi returns an NT device path, but CreateFile() < Vista can't
* understand that; so use the \\?\ prefix instead */
name
[
1
]
=
'\\'
;
file
=
CreateFileW
(
name
,
0
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
NULL
,
OPEN_EXISTING
,
0
,
NULL
);
todo_wine_if
(
info
.
dwType
!=
RIM_TYPEHID
)
ok
(
file
!=
INVALID_HANDLE_VALUE
,
"Failed to open %s, error %u
\n
"
,
wine_dbgstr_w
(
name
),
GetLastError
());
CloseHandle
(
file
);
}
}
/* check if variable changes from larger to smaller value */
/* check if variable changes from larger to smaller value */
...
...
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