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@gmail.com> Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b3faad66cf
commit
1cab62f1a0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue