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
437f7a37
Commit
437f7a37
authored
Nov 14, 2016
by
Aric Stewart
Committed by
Alexandre Julliard
Nov 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hidclass.sys: Handle descriptors with a usage count less than the report bits.
Signed-off-by:
Aric Stewart
<
aric@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3b3b7670
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
descriptor.c
dlls/hidclass.sys/descriptor.c
+6
-1
No files found.
dlls/hidclass.sys/descriptor.c
View file @
437f7a37
...
...
@@ -752,7 +752,12 @@ static void build_elements(WINE_HID_REPORT *wine_report, struct feature* feature
wine_element
->
caps
.
value
.
HasNull
=
feature
->
HasNull
;
wine_element
->
caps
.
value
.
BitSize
=
feature
->
caps
.
BitSize
;
if
(
feature
->
caps
.
usage_count
>
1
)
wine_element
->
caps
.
value
.
ReportCount
=
1
;
{
if
(
feature
->
caps
.
ReportCount
>
feature
->
caps
.
usage_count
)
wine_element
->
caps
.
value
.
ReportCount
=
feature
->
caps
.
ReportCount
/
feature
->
caps
.
usage_count
;
else
wine_element
->
caps
.
value
.
ReportCount
=
1
;
}
else
wine_element
->
caps
.
value
.
ReportCount
=
feature
->
caps
.
ReportCount
;
wine_element
->
bitCount
=
(
feature
->
caps
.
BitSize
*
wine_element
->
caps
.
value
.
ReportCount
);
...
...
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