Previous 15994 Revisions Next

r14168 Wednesday 25th January, 2012 at 07:51:47 UTC by Miodrag Milanović
Fix for get_card_device() (no whatsnew)
[src/emu]dislot.c

src/emu/dislot.c
r14167r14168
3737   } else {
3838      subtag = device().mconfig().options().value(device().tag());
3939   }
40   if (subtag) {
40   if (subtag && strlen(subtag)>0) {
4141      device_slot_card_interface *intf = NULL;
4242      dev = device().subdevice(subtag);
4343      if (dev!=NULL && !dev->interface(intf))
44         throw emu_fatalerror("get_card_device called for device '%s' with no slot card interface", dev->tag());
44         throw emu_fatalerror("get_card_device called for device '%s' with no slot card interface tag %s", dev->tag(),subtag);
4545   }
4646   return dev;
4747}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team