winebus.sys: Ignore EV_REL / EV_ABS ioctl failures.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2021-08-16 08:56:25 +02:00 committed by Alexandre Julliard
parent fd73402ce6
commit 12ef137b47
1 changed files with 2 additions and 2 deletions

View File

@ -357,12 +357,12 @@ static BOOL build_report_descriptor(struct wine_input_private *ext, struct udev_
if (ioctl(ext->base.device_fd, EVIOCGBIT(EV_REL, sizeof(relbits)), relbits) == -1)
{
WARN("ioctl(EVIOCGBIT, EV_REL) failed: %d %s\n", errno, strerror(errno));
return FALSE;
memset(relbits, 0, sizeof(relbits));
}
if (ioctl(ext->base.device_fd, EVIOCGBIT(EV_ABS, sizeof(absbits)), absbits) == -1)
{
WARN("ioctl(EVIOCGBIT, EV_ABS) failed: %d %s\n", errno, strerror(errno));
return FALSE;
memset(absbits, 0, sizeof(absbits));
}
report_size = 0;