mirror of
https://github.com/holub/mame
synced 2025-10-07 09:25:34 +03:00
imgtool: hopefully fixed the "GET" command
This commit is contained in:
parent
2a047019b5
commit
5f7e815d33
@ -1750,7 +1750,6 @@ imgtoolerr_t imgtool::partition::get_file(const char *filename, const char *fork
|
|||||||
{
|
{
|
||||||
imgtoolerr_t err;
|
imgtoolerr_t err;
|
||||||
imgtool::stream::ptr f;
|
imgtool::stream::ptr f;
|
||||||
char *new_fname = nullptr;
|
|
||||||
char *alloc_dest = nullptr;
|
char *alloc_dest = nullptr;
|
||||||
const char *filter_extension = nullptr;
|
const char *filter_extension = nullptr;
|
||||||
|
|
||||||
@ -1785,15 +1784,11 @@ imgtoolerr_t imgtool::partition::get_file(const char *filename, const char *fork
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
err = read_file(new_fname, fork, *f, filter);
|
err = read_file(filename, fork, *f, filter);
|
||||||
if (err)
|
|
||||||
goto done;
|
|
||||||
|
|
||||||
done:
|
done:
|
||||||
if (alloc_dest != nullptr)
|
if (alloc_dest != nullptr)
|
||||||
free(alloc_dest);
|
free(alloc_dest);
|
||||||
if (new_fname != nullptr)
|
|
||||||
free(new_fname);
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user