Ivo Ivanov : winebus.sys: Use 0 for the infinity durations in the UDEV lnxev backend.
Alexandre Julliard
julliard at winehq.org
Thu Dec 9 15:34:29 CST 2021
Module: wine
Branch: master
Commit: 1cab62f1a0db009b142d538c1e0ff4a41eb59ecd
URL: https://source.winehq.org/git/wine.git/?a=commit;h=1cab62f1a0db009b142d538c1e0ff4a41eb59ecd
Author: Ivo Ivanov <logos128 at gmail.com>
Date: Thu Dec 9 14:44:13 2021 +0100
winebus.sys: Use 0 for the infinity durations in the UDEV lnxev backend.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51922
Signed-off-by: Ivo Ivanov <logos128 at gmail.com>
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winebus.sys/bus_udev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winebus.sys/bus_udev.c b/dlls/winebus.sys/bus_udev.c
index 56260f9ed61..dec8435555c 100644
--- a/dlls/winebus.sys/bus_udev.c
+++ b/dlls/winebus.sys/bus_udev.c
@@ -1041,7 +1041,7 @@ static NTSTATUS lnxev_device_physical_effect_update(struct unix_device *iface, B
if (params->effect_type == PID_USAGE_UNDEFINED) return STATUS_SUCCESS;
if ((status = set_effect_type_from_usage(&effect, params->effect_type))) return status;
- effect.replay.length = params->duration;
+ effect.replay.length = (params->duration == 0xffff ? 0 : params->duration);
effect.replay.delay = params->start_delay;
effect.trigger.button = params->trigger_button;
effect.trigger.interval = params->trigger_repeat_interval;
More information about the wine-cvs
mailing list