aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-11-30 17:56:09 +0300
committerJoursoir <chat@joursoir.net>2021-11-30 17:56:09 +0300
commit1dbe90c11b327d5aa0071dc55305859d42258ad3 (patch)
tree4cdf527df32a87bfd02fdda7818b85c4f8ea3949
parentdcb8f1393ef299df31044593a2f1a178b18d7f4f (diff)
downloadufm-1dbe90c11b327d5aa0071dc55305859d42258ad3.tar.gz
ufm-1dbe90c11b327d5aa0071dc55305859d42258ad3.tar.bz2
ufm-1dbe90c11b327d5aa0071dc55305859d42258ad3.zip
panel: fix typos in allocation
-rw-r--r--Library/UefiShellUfmCommandLib/panel.c4
1 files changed, 1 insertions, 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;