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

hid: Fix error handling in HidP_SetUsages.

parent c0604a93
......@@ -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;
}
......
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