Previous 15994 Revisions Next

r11095 Wednesday 6th April, 2011 at 17:32:34 UTC by Fabio Priuli
softlist.c/uiimage.c: char buffer should get cleaned also when Esc is pressed. no whatsnew.
[src/emu]softlist.c uiimage.c

src/emu/uiimage.c
r11094r11095
922922               ui_menu_set_selection(menu, (void *) selected_entry);
923923         }
924924      }
925      else if (event->iptkey == IPT_UI_CANCEL)
926      {
927         // reset the char buffer also in this case
928         if (menustate->filename_buffer[0] != '\0')
929            memset(menustate->filename_buffer, '\0', ARRAY_LENGTH(menustate->filename_buffer));
930      }
925931   }
926932}
927933
src/emu/softlist.c
r11094r11095
21662166               ui_menu_set_selection(menu, (void *) selected_entry);
21672167         }
21682168      }
2169      else if (event->iptkey == IPT_UI_CANCEL)
2170      {
2171         // reset the char buffer also in this case
2172         if (sw_state->filename_buffer[0] != '\0')
2173            memset(sw_state->filename_buffer, '\0', ARRAY_LENGTH(sw_state->filename_buffer));
2174      }
21692175   }
21702176}
21712177

Previous 15994 Revisions Next


© 1998-2018 The MESS Team