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:
Piotr Caban 2019-05-14 12:43:45 +02:00 committed by Alexandre Julliard
parent c0604a9341
commit 2b5efe1b1c
1 changed files with 5 additions and 5 deletions

View File

@ -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;
}