Rémi Bernon : winebus.sys: Use an unsigned 16bit range for saturation and deadband values.
Alexandre Julliard
julliard at winehq.org
Thu Dec 9 15:34:29 CST 2021
Module: wine
Branch: master
Commit: 4b1f9daad5e1f4f8556a0ac55330dcb82cd695d5
URL: https://source.winehq.org/git/wine.git/?a=commit;h=4b1f9daad5e1f4f8556a0ac55330dcb82cd695d5
Author: Rémi Bernon <rbernon at codeweavers.com>
Date: Thu Dec 9 14:44:14 2021 +0100
winebus.sys: Use an unsigned 16bit range for saturation and deadband values.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51922
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winebus.sys/hid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winebus.sys/hid.c b/dlls/winebus.sys/hid.c
index 8680f8a088c..32628f1f2fd 100644
--- a/dlls/winebus.sys/hid.c
+++ b/dlls/winebus.sys/hid.c
@@ -641,7 +641,7 @@ static BOOL hid_descriptor_add_set_condition(struct unix_device *iface)
USAGE(1, PID_USAGE_NEGATIVE_SATURATION),
USAGE(1, PID_USAGE_DEAD_BAND),
LOGICAL_MINIMUM(1, 0),
- LOGICAL_MAXIMUM(2, 0x7fff),
+ LOGICAL_MAXIMUM(4, 0xffff),
PHYSICAL_MINIMUM(1, 0),
PHYSICAL_MAXIMUM(2, +10000),
REPORT_SIZE(1, 16),
More information about the wine-cvs
mailing list