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,6 +599,7 @@ 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)
|
||||
{
|
||||
|
@ -606,7 +607,6 @@ NTSTATUS WINAPI HidP_SetUsages(HIDP_REPORT_TYPE ReportType, USAGE UsagePage, USH
|
|||
return rc;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return HIDP_STATUS_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue