Previous 15994 Revisions Next

r15410 Tuesday 5th June, 2012 at 19:18:15 UTC by Miodrag Milanović
fix for null values (nw)
[src/emu]uimain.c

src/emu/uimain.c
r15409r15410
456456      const char *title = get_slot_device(slot);
457457      // do no display fixed slots
458458      if (slot->fixed()) title = slot->get_default_card();
459     
459      if (title==NULL) title = "";
460460      item_append(slot->device().tag()+1, strcmp(title,"")==0 ? "------" : title, slot->fixed() ? 0 : (MENU_FLAG_LEFT_ARROW | MENU_FLAG_RIGHT_ARROW), (void *)slot);
461461   }
462462   item_append(MENU_SEPARATOR_ITEM, NULL, 0, NULL);
r15409r15410
11771177   ioport_field *field = (ioport_field *)selectedref;
11781178   dip_descriptor *dip;
11791179
1180   if (field!=NULL && field->first_diplocation() == NULL)
1180   if (field==NULL || field->first_diplocation() == NULL)
11811181      return;
11821182
11831183   /* add borders */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team