fixed empty image name. no whatsnew.

This commit is contained in:
Fabio Priuli 2011-01-14 14:59:09 +00:00
parent af54f39fc3
commit d3efd25ec5

View File

@ -226,13 +226,13 @@ void image_device_init(running_machine *machine)
{
/* retrieve image error message */
astring image_err = astring(image->error());
const char *image_basename_str = image->basename();
astring image_basename(image_name);
/* unload all images */
image_unload_all(*machine);
fatalerror_exitcode(machine, MAMERR_DEVICE, "Device %s load (%s) failed: %s",
image->image_config().devconfig().name(),
image_basename_str,
image_basename.cstr(),
image_err.cstr());
}
}