Skip to content
Snippets Groups Projects
Commit 6657cfe7 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard
Browse files

dinput: Fix handle leak.

parent 160945e2
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment