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
7f0e91f5
Commit
7f0e91f5
authored
Jun 28, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Jun 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hid: Always return node count in HidP_GetLinkCollectionNodes.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
37009031
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
hidp.c
dlls/hid/hidp.c
+1
-1
ntoskrnl.c
dlls/ntoskrnl.exe/tests/ntoskrnl.c
+0
-1
No files found.
dlls/hid/hidp.c
View file @
7f0e91f5
...
...
@@ -731,8 +731,8 @@ NTSTATUS WINAPI HidP_GetLinkCollectionNodes( HIDP_LINK_COLLECTION_NODE *nodes, U
if
(
preparsed
->
magic
!=
HID_MAGIC
)
return
HIDP_STATUS_INVALID_PREPARSED_DATA
;
if
(
capacity
<
preparsed
->
caps
.
NumberLinkCollectionNodes
)
return
HIDP_STATUS_BUFFER_TOO_SMALL
;
count
=
*
nodes_len
=
preparsed
->
caps
.
NumberLinkCollectionNodes
;
if
(
capacity
<
count
)
return
HIDP_STATUS_BUFFER_TOO_SMALL
;
for
(
i
=
0
;
i
<
count
;
++
i
)
{
...
...
dlls/ntoskrnl.exe/tests/ntoskrnl.c
View file @
7f0e91f5
...
...
@@ -1852,7 +1852,6 @@ static void test_hidp(HANDLE file, int report_id)
collection_count
=
0
;
status
=
HidP_GetLinkCollectionNodes
(
collections
,
&
collection_count
,
preparsed_data
);
ok
(
status
==
HIDP_STATUS_BUFFER_TOO_SMALL
,
"HidP_GetLinkCollectionNodes returned %#x
\n
"
,
status
);
todo_wine
ok
(
collection_count
==
caps
.
NumberLinkCollectionNodes
,
"got %d collection nodes, expected %d
\n
"
,
collection_count
,
caps
.
NumberLinkCollectionNodes
);
collection_count
=
ARRAY_SIZE
(
collections
);
...
...
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