Commit c47677fe authored by Marcel Hasler's avatar Marcel Hasler Committed by Alexandre Julliard

dinput: Support INFINITE as number of effect iterations.

parent 441f7b6d
......@@ -29,6 +29,7 @@
# include <linux/input.h>
# undef SW_MAX
#endif
#include <limits.h>
#include <errno.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
......@@ -518,7 +519,7 @@ static HRESULT WINAPI LinuxInputEffectImpl_Start(
event.type = EV_FF;
event.code = This->effect.id;
event.value = dwIterations;
event.value = min( dwIterations, INT_MAX );
if (write(*(This->fd), &event, sizeof(event)) == -1) {
FIXME("Unable to write event. Assuming device disconnected.\n");
return DIERR_INPUTLOST;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment