mirror of
https://github.com/holub/mame
synced 2025-05-29 17:13:05 +03:00
Fix crasher caused by new astring operators (original code
was buggy, but didn't crash before).
This commit is contained in:
parent
05702c5f07
commit
f5a217442a
@ -650,7 +650,7 @@ static bool validate_gfx(int drivnum, const machine_config *config, region_array
|
|||||||
for (rgnnum = 0; rgnnum < ARRAY_LENGTH(rgninfo->entries); rgnnum++)
|
for (rgnnum = 0; rgnnum < ARRAY_LENGTH(rgninfo->entries); rgnnum++)
|
||||||
{
|
{
|
||||||
/* stop if we hit an empty */
|
/* stop if we hit an empty */
|
||||||
if (rgninfo->entries[rgnnum].tag == NULL)
|
if (rgninfo->entries[rgnnum].tag.len() == 0)
|
||||||
{
|
{
|
||||||
mame_printf_error("%s: %s has gfx[%d] referencing non-existent region '%s'\n", driver->source_file, driver->name, gfxnum, region);
|
mame_printf_error("%s: %s has gfx[%d] referencing non-existent region '%s'\n", driver->source_file, driver->name, gfxnum, region);
|
||||||
error = true;
|
error = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user