This commit is contained in:
twinaphex 2020-08-18 10:57:42 +02:00
parent d29e0a9969
commit fe28f17eeb
1 changed files with 1 additions and 2 deletions

View File

@ -322,12 +322,11 @@ static void task_core_backup_handler(retro_task_t *task)
break; break;
case CORE_BACKUP_ITERATE: case CORE_BACKUP_ITERATE:
{ {
int64_t data_read = 0;
int64_t data_written = 0; int64_t data_written = 0;
uint8_t buffer[CORE_BACKUP_CHUNK_SIZE]; uint8_t buffer[CORE_BACKUP_CHUNK_SIZE];
/* Read a single chunk from the core file */ /* Read a single chunk from the core file */
data_read = intfstream_read(backup_handle->core_file, buffer, sizeof(buffer)); int64_t data_read = intfstream_read(backup_handle->core_file, buffer, sizeof(buffer));
if (data_read < 0) if (data_read < 0)
{ {