mirror of
https://github.com/holub/mame
synced 2025-07-05 01:48:29 +03:00
fixed poteotential -validate crash with invalid softwarelist XML (nw)
This commit is contained in:
parent
cd0c9e1f28
commit
98aedadd72
@ -196,7 +196,10 @@ software_info::software_info(software_list_device &list, const char *name, const
|
|||||||
m_list(list),
|
m_list(list),
|
||||||
m_supported(SOFTWARE_SUPPORTED_YES),
|
m_supported(SOFTWARE_SUPPORTED_YES),
|
||||||
m_shortname(name),
|
m_shortname(name),
|
||||||
m_parentname(parent)
|
m_longname(NULL),
|
||||||
|
m_parentname(parent),
|
||||||
|
m_year(NULL),
|
||||||
|
m_publisher(NULL)
|
||||||
{
|
{
|
||||||
// ensure strings we are passed are in the string pool
|
// ensure strings we are passed are in the string pool
|
||||||
assert(list.string_pool_contains(name));
|
assert(list.string_pool_contains(name));
|
||||||
|
Loading…
Reference in New Issue
Block a user