From: SeongChan Lee <foriequal@gmail.com> --- dlls/winebus.sys/hid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winebus.sys/hid.c b/dlls/winebus.sys/hid.c index dcd8dc072c7..66ea37f077c 100644 --- a/dlls/winebus.sys/hid.c +++ b/dlls/winebus.sys/hid.c @@ -258,8 +258,8 @@ BOOL hid_device_add_hatswitch(struct unix_device *iface, INT count) static BYTE hid_device_determine_axis_size(LONG min, LONG max) { - if (min >= -128 && max <= 127) return 8; - if (min >= -32768 && max <= 32767) return 16; + if ((min >= 0 && max <= 255) || (min >= -128 && max <= 127)) return 8; + if ((min >= 0 && max <= 65535) || (min >= -32768 && max <= 32767)) return 16; return 32; } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9789