[PATCH 4/5] winebus.sys: Use an unsigned 16bit range for saturation and deadband values.
Rémi Bernon
rbernon at codeweavers.com
Thu Dec 9 07:44:14 CST 2021
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51922
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
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),
--
2.34.0
More information about the wine-devel
mailing list