Netplay: fixes

This commit is contained in:
SimpleTease 2020-12-23 01:13:53 +00:00
parent a1b4cced5b
commit badfbe0ccd
2 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -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