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>
This commit is contained in:
parent
1161603384
commit
6a610a3258
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue