From: longpanda Date: Sat, 31 Oct 2020 05:38:13 +0000 (+0800) Subject: fix a bug about VTOY_DEFAULT_IMAGE in treeview mode issue #555 X-Git-Tag: v1.0.27~1 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/062c71b972184174cd3a5648999bc6982b80d393?ds=sidebyside fix a bug about VTOY_DEFAULT_IMAGE in treeview mode issue #555 --- diff --git a/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c b/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c index 2206b91..6e8c28e 100644 --- a/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c +++ b/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c @@ -1784,8 +1784,6 @@ static int ventoy_set_default_menu(void) pos = def + 1; } - pos = def + 1; - while ((end = grub_strchr(pos, '/')) != NULL) { *end = 0;