hid: Initialize outgoing usages in HidP_GetUsages.
Signed-off-by: Aric Stewart <aric@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c22b2192e5
commit
78a547a11c
|
@ -278,6 +278,8 @@ 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,
|
TRACE("(%i, %x, %i, %p, %p, %p, %p, %i)\n", ReportType, UsagePage, LinkCollection, UsageList,
|
||||||
UsageLength, PreparsedData, Report, ReportLength);
|
UsageLength, PreparsedData, Report, ReportLength);
|
||||||
|
|
||||||
|
*UsageLength = 0;
|
||||||
|
|
||||||
if (data->magic != HID_MAGIC)
|
if (data->magic != HID_MAGIC)
|
||||||
return HIDP_STATUS_INVALID_PREPARSED_DATA;
|
return HIDP_STATUS_INVALID_PREPARSED_DATA;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue