Fix spectator mode crash.

This commit is contained in:
Themaister 2012-05-04 19:56:48 +02:00
parent 1e0ef3d08d
commit 1c172d7947

View File

@ -631,7 +631,7 @@ static uint32_t *bsv_header_generate(size_t *size, uint32_t magic)
bsv_header[CRC_INDEX] = swap_if_big32(g_extern.cart_crc);
bsv_header[STATE_SIZE_INDEX] = swap_if_big32(serialize_size);
if (serialize_size && !pretro_serialize(header + sizeof(bsv_header), serialize_size))
if (serialize_size && !pretro_serialize(header + 4, serialize_size))
{
free(header);
return NULL;