mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
menu: Fix bus error during simultaneous file download/decompression
This commit is contained in:
parent
e346eccbb7
commit
d5b358fde8
1 changed files with 13 additions and 2 deletions
|
@ -1379,6 +1379,19 @@ static void cb_generic_download(void *task_data,
|
|||
fill_pathname_join(output_path, dir_path,
|
||||
transf->path, sizeof(output_path));
|
||||
|
||||
#ifdef HAVE_ZLIB
|
||||
file_ext = path_get_extension(output_path);
|
||||
|
||||
if (string_is_equal_noncase(file_ext, "zip"))
|
||||
{
|
||||
if (rarch_task_check_decompress(output_path))
|
||||
{
|
||||
err = "Decompression already in progress.";
|
||||
goto finish;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!filestream_write_file(output_path, data->data, data->len))
|
||||
{
|
||||
err = "Write failed.";
|
||||
|
@ -1386,8 +1399,6 @@ static void cb_generic_download(void *task_data,
|
|||
}
|
||||
|
||||
#ifdef HAVE_ZLIB
|
||||
file_ext = path_get_extension(output_path);
|
||||
|
||||
if (!settings->network.buildbot_auto_extract_archive)
|
||||
goto finish;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue