diff options
Diffstat (limited to 'apps/menu.c')
-rw-r--r-- | apps/menu.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/apps/menu.c b/apps/menu.c index 48eea70454..2ef8e0d839 100644 --- a/apps/menu.c +++ b/apps/menu.c | |||
@@ -644,14 +644,19 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected, | |||
644 | init_menu_lists(menu, &lists, 0, true, vps); | 644 | init_menu_lists(menu, &lists, 0, true, vps); |
645 | } | 645 | } |
646 | break; | 646 | break; |
647 | case MT_FUNCTION_CALL_W_PARAM: | ||
647 | case MT_FUNCTION_CALL: | 648 | case MT_FUNCTION_CALL: |
648 | { | 649 | { |
649 | int return_value; | 650 | int return_value; |
650 | if (temp->flags&MENU_FUNC_USEPARAM) | 651 | if (type == MT_FUNCTION_CALL_W_PARAM) |
651 | return_value = temp->function->function_w_param( | 652 | { |
652 | temp->function->param); | 653 | return_value = temp->function_param->function_w_param( |
654 | temp->function_param->param); | ||
655 | } | ||
653 | else | 656 | else |
657 | { | ||
654 | return_value = temp->function->function(); | 658 | return_value = temp->function->function(); |
659 | } | ||
655 | if (!(menu->flags&MENU_EXITAFTERTHISMENU) || | 660 | if (!(menu->flags&MENU_EXITAFTERTHISMENU) || |
656 | (temp->flags&MENU_EXITAFTERTHISMENU)) | 661 | (temp->flags&MENU_EXITAFTERTHISMENU)) |
657 | { | 662 | { |