Commit ab542a92 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

dinput: Use assignment instead of memcpy to copy a struct.

parent 18b2a38b
......@@ -314,7 +314,7 @@ static void find_joydevs(void)
continue;
}
joydevs = new_joydevs;
memcpy(joydevs + have_joydevs, &joydev, sizeof(joydev));
joydevs[have_joydevs] = joydev;
have_joydevs++;
close(fd);
......
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