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
e724d67f
Commit
e724d67f
authored
Dec 08, 2016
by
Aric Stewart
Committed by
Alexandre Julliard
Dec 08, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hid: Refine initialization of UsageLength in HidP_GetUsages.
Signed-off-by:
Aric Stewart
<
aric@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c86bf9dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
hidp.c
dlls/hid/hidp.c
+5
-4
No files found.
dlls/hid/hidp.c
View file @
e724d67f
...
...
@@ -278,10 +278,11 @@ NTSTATUS WINAPI HidP_GetUsages(HIDP_REPORT_TYPE ReportType, USAGE UsagePage, USH
TRACE
(
"(%i, %x, %i, %p, %p, %p, %p, %i)
\n
"
,
ReportType
,
UsagePage
,
LinkCollection
,
UsageList
,
UsageLength
,
PreparsedData
,
Report
,
ReportLength
);
*
UsageLength
=
0
;
if
(
data
->
magic
!=
HID_MAGIC
)
{
*
UsageLength
=
0
;
return
HIDP_STATUS_INVALID_PREPARSED_DATA
;
}
switch
(
ReportType
)
{
...
...
@@ -344,11 +345,11 @@ NTSTATUS WINAPI HidP_GetUsages(HIDP_REPORT_TYPE ReportType, USAGE UsagePage, USH
}
}
*
UsageLength
=
uCount
;
if
(
!
found
)
return
HIDP_STATUS_USAGE_NOT_FOUND
;
*
UsageLength
=
uCount
;
return
HIDP_STATUS_SUCCESS
;
}
...
...
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