mirror of
https://github.com/holub/mame
synced 2025-05-14 18:08:13 +03:00
Fixed a stupid segfault introduced by pretending the emu can set the filename of the loaded image also when loading has failed :(
No whatsnew.
This commit is contained in:
parent
464f81e7f9
commit
f21e62fcbf
@ -441,7 +441,7 @@ bool legacy_image_device_base::load_internal(const char *path, bool is_create, i
|
||||
softload = load_software_part( this, path, &m_software_info_ptr, &m_software_part_ptr, &m_full_software_name );
|
||||
// if we had launched from softlist with a specified part, e.g. "shortname:part"
|
||||
// we would have recorded the wrong name, so record it again based on software_info
|
||||
if (m_software_info_ptr->shortname != NULL)
|
||||
if (m_software_info_ptr && m_software_info_ptr->shortname)
|
||||
m_err = set_image_filename(m_software_info_ptr->shortname);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user