diff --git a/network/netplay/netplay_handshake.c b/network/netplay/netplay_handshake.c index bdb468788d..620fb7ac2b 100644 --- a/network/netplay/netplay_handshake.c +++ b/network/netplay/netplay_handshake.c @@ -872,7 +872,7 @@ static bool netplay_handshake_pre_info(netplay_t *netplay, return true; } - RECV(&info_buf.core_name, cmd_size) + RECV(&info_buf.content_crc, cmd_size) { RARCH_ERR("Failed to receive netplay info payload.\n"); return false; diff --git a/network/netplay/netplay_private.h b/network/netplay/netplay_private.h index de8763834d..5c62846a5a 100644 --- a/network/netplay/netplay_private.h +++ b/network/netplay/netplay_private.h @@ -280,11 +280,13 @@ typedef struct netplay_input_state /* How many words of input data do we have? */ uint32_t size; + /* Is this a buffer with real data? */ + bool used; + /* The input data itself (note: should expand beyond 1 by overallocating). */ uint32_t data[1]; - /* Is this a buffer with real data? */ - bool used; + /* Warning: No members allowed past this point, due to dynamic resizing. */ } *netplay_input_state_t; struct delta_frame