dinput: Fix handle leak.
This commit is contained in:
parent
160945e217
commit
6657cfe70d
|
@ -151,6 +151,8 @@ static INT find_joystick_devices(void)
|
|||
if ((fd = open(device_name, O_RDONLY)) < 0) continue;
|
||||
}
|
||||
|
||||
close(fd);
|
||||
|
||||
if (!(str = HeapAlloc(GetProcessHeap(), 0, len))) break;
|
||||
memcpy(str, device_name, len);
|
||||
|
||||
|
|
Loading…
Reference in New Issue