mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
Add check for decompression failure in generic download function
This commit is contained in:
parent
3c23159148
commit
9b36274a95
@ -1393,8 +1393,12 @@ static void cb_generic_download(void *task_data,
|
||||
|
||||
if (string_is_equal_noncase(file_ext, "zip"))
|
||||
{
|
||||
rarch_task_push_decompress(output_path, dir_path, NULL, NULL, NULL,
|
||||
cb_decompressed, (void*)(uintptr_t)transf->type_hash);
|
||||
if (!rarch_task_push_decompress(output_path, dir_path, NULL, NULL, NULL,
|
||||
cb_decompressed, (void*)(uintptr_t)transf->type_hash))
|
||||
{
|
||||
err = "Decompression failed.";
|
||||
goto finish;
|
||||
}
|
||||
}
|
||||
#else
|
||||
switch (transf->type_hash)
|
||||
|
Loading…
x
Reference in New Issue
Block a user