mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 00:49:47 +00:00
fix 7z extraction endless loop
This commit is contained in:
parent
a8aa78456c
commit
f0d1a733e3
@ -390,14 +390,17 @@ static int sevenzip_parse_file_iterate_step(file_archive_transfer_t *state,
|
||||
unsigned cmode = 0;
|
||||
unsigned payload = 0;
|
||||
struct sevenzip_context_t *sevenzip_context = NULL;
|
||||
int ret = sevenzip_parse_file_iterate_step_internal(state, filename,
|
||||
int ret;
|
||||
|
||||
filename[0] = '\0';
|
||||
|
||||
ret = sevenzip_parse_file_iterate_step_internal(state, filename,
|
||||
&cdata, &cmode, &size, &csize,
|
||||
&checksum, &payload, userdata);
|
||||
|
||||
if (ret != 1)
|
||||
return ret;
|
||||
|
||||
filename[0] = '\0';
|
||||
userdata->extracted_file_path = filename;
|
||||
userdata->crc = checksum;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user