From 1dbe90c11b327d5aa0071dc55305859d42258ad3 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Tue, 30 Nov 2021 17:56:09 +0300 Subject: panel: fix typos in allocation --- Library/UefiShellUfmCommandLib/panel.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Library/UefiShellUfmCommandLib/panel.c b/Library/UefiShellUfmCommandLib/panel.c index c76fb55..450d73b 100644 --- a/Library/UefiShellUfmCommandLib/panel.c +++ b/Library/UefiShellUfmCommandLib/panel.c @@ -246,12 +246,10 @@ struct panel_ctx *panel_alloc(struct screen *scr, CONST CHAR16 *path, } panel->name_cols = name_cols; - panel->curline = 1; panel->list_lines = lines - 5; - panel->start_entry = 1; wrefresh(panel->wbg); - res = panel_show(panel, path); + res = panel_cd_to(panel, path); if(!res) { panel_release(panel); return NULL; -- cgit v1.2.3-18-g5258