Commit 2b5efe1b authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

hid: Fix error handling in HidP_SetUsages.

parent c0604a93
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment