Module: wine Branch: master Commit: 6a610a325809d47f48bc72f3a757e1a62b193ea8 URL: https://source.winehq.org/git/wine.git/?a=commit;h=6a610a325809d47f48bc72f3a...
Author: Andrew Eikum aeikum@codeweavers.com Date: Mon May 20 10:31:37 2019 -0500
hid: Fix usage value mask.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47223 Signed-off-by: Andrew Eikum aeikum@codeweavers.com Signed-off-by: Aric Stewart aric@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/hid/hidp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/hid/hidp.c b/dlls/hid/hidp.c index 8c04670..c780dbe 100644 --- a/dlls/hid/hidp.c +++ b/dlls/hid/hidp.c @@ -64,7 +64,7 @@ static NTSTATUS get_report_data(BYTE *report, INT reportLength, INT startBit, IN if (remaining_bits < copy_bits) copy_bits = remaining_bits;
- data |= ((report[byte_index] >> bit_index) & ((2 << copy_bits) - 1)) << shift; + data |= ((report[byte_index] >> bit_index) & ((1 << copy_bits) - 1)) << shift;
shift += copy_bits; bit_index = 0;