hid: Fix error handling in HidP_SetUsages.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Aric Stewart <aric@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c0604a9341
commit
2b5efe1b1c
|
@ -599,12 +599,12 @@ NTSTATUS WINAPI HidP_SetUsages(HIDP_REPORT_TYPE ReportType, USAGE UsagePage, USH
|
|||
{
|
||||
rc = set_report_data((BYTE*)Report, ReportLength,
|
||||
element.valueStartBit, element.bitCount, -1);
|
||||
}
|
||||
|
||||
if (rc != HIDP_STATUS_SUCCESS)
|
||||
{
|
||||
*UsageLength = i;
|
||||
return rc;
|
||||
}
|
||||
if (rc != HIDP_STATUS_SUCCESS)
|
||||
{
|
||||
*UsageLength = i;
|
||||
return rc;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue