Previous 15994 Revisions Next

r14826 Friday 30th March, 2012 at 08:22:48 UTC by Miodrag Milanović
prevent crashing if there is interface defined but no actual softlist hooked (no whatsnew)
[src/emu]uiswlist.c

src/emu/uiswlist.c
r14825r14826
329329      {
330330         const software_list *list = software_list_open(machine().options(), swlist->list_name(), false, NULL);
331331
332         if (list)
332         if (list && interface)
333333         {
334334            bool found = false;
335335            for (const software_info *swinfo = software_list_find(list, "*", NULL); swinfo != NULL; swinfo = software_list_find(list, "*", swinfo))
r14825r14826
355355      {
356356         const software_list *list = software_list_open(machine().options(), swlist->list_name(), false, NULL);
357357
358         if (list)
358         if (list && interface)
359359         {
360360            bool found = false;
361361            for (const software_info *swinfo = software_list_find(list, "*", NULL); swinfo != NULL; swinfo = software_list_find(list, "*", swinfo))

Previous 15994 Revisions Next


© 1998-2018 The MESS Team