mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-02 13:28:35 +00:00
Do nothing if the same interface gets set twice
This commit is contained in:
parent
5b1e28843e
commit
67836c144e
@ -9229,6 +9229,10 @@ bool netplay_driver_ctl(enum rarch_netplay_ctl_state state, void *data)
|
||||
|
||||
if (net_st->core_netpacket_interface)
|
||||
{
|
||||
if (data && !memcmp(net_st->core_netpacket_interface,
|
||||
data, sizeof(*net_st->core_netpacket_interface)))
|
||||
break; /* interface is not modified */
|
||||
|
||||
free(net_st->core_netpacket_interface);
|
||||
net_st->core_netpacket_interface = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user