Piotr Caban : hid: Only set first usage in an array in HidP_SetUsageValue.
Alexandre Julliard
julliard at winehq.org
Mon May 6 15:38:49 CDT 2019
Module: wine
Branch: master
Commit: 028e1ee3db8232c5e92533dda99e936cd694b3d4
URL: https://source.winehq.org/git/wine.git/?a=commit;h=028e1ee3db8232c5e92533dda99e936cd694b3d4
Author: Piotr Caban <piotr at codeweavers.com>
Date: Fri May 3 11:59:13 2019 +0200
hid: Only set first usage in an array in HidP_SetUsageValue.
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/hid/hidp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/hid/hidp.c b/dlls/hid/hidp.c
index bfdc888..2c4e98a 100644
--- a/dlls/hid/hidp.c
+++ b/dlls/hid/hidp.c
@@ -263,6 +263,7 @@ static NTSTATUS find_value(HIDP_REPORT_TYPE ReportType, USAGE UsagePage, USHORT
else if (report->Elements[i].caps.value.u.NotRange.Usage == Usage)
{
*element = report->Elements[i];
+ element->bitCount = value->BitSize;
return HIDP_STATUS_SUCCESS;
}
}
More information about the wine-cvs
mailing list