From 91c8fea8e9b78742228d034a1def94bd886c304f Mon Sep 17 00:00:00 2001 From: Themaister Date: Thu, 11 Apr 2013 16:13:07 +0200 Subject: [PATCH] Fix crash in shader browser. --- frontend/menu/rgui.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/menu/rgui.c b/frontend/menu/rgui.c index f38e1578c9..c071ec6d6b 100644 --- a/frontend/menu/rgui.c +++ b/frontend/menu/rgui.c @@ -1814,13 +1814,14 @@ int rgui_iterate(rgui_handle_t *rgui, rgui_action_t action) unsigned type = 0; const char *dir = NULL; rgui_list_pop(rgui->menu_stack); - rgui_list_get_last(rgui->menu_stack, &dir, &type, NULL); + rgui_list_get_last(rgui->menu_stack, &dir, &type, &directory_ptr); while (type != RGUI_SETTINGS_SHADER_MANAGER) { rgui_list_pop(rgui->menu_stack); - rgui_list_get_last(rgui->menu_stack, &dir, &type, NULL); + rgui_list_get_last(rgui->menu_stack, &dir, &type, &directory_ptr); } rgui->need_refresh = true; + rgui->selection_ptr = directory_ptr; } else #endif