Commit 1c3b1c3f authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

dinput: Added a missing close(fd) in disabled case (Coverity).

parent 1104678b
......@@ -158,7 +158,10 @@ static INT find_joystick_devices(void)
/* Append driver name */
strcat(joydev.name, JOYDEVDRIVER);
if (device_disabled_registry(joydev.name)) continue;
if (device_disabled_registry(joydev.name)) {
close(fd);
continue;
}
#ifdef JSIOCGAXES
if (ioctl(fd, JSIOCGAXES, &joydev.axis_count) < 0)
......
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