Skip to content

Commit de085ba

Browse files
committed
Fix the order issue in TreeView mode. (#3218)
1 parent bb94ec6 commit de085ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_cmd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,11 +1598,11 @@ static int ventoy_cmp_subdir(img_iterator_node *node1, img_iterator_node *node2)
15981598

15991599
if (c1 != c2)
16001600
{
1601-
break;
1601+
return (c1 - c2);
16021602
}
16031603
}
16041604

1605-
return (c1 - c2);
1605+
return *s1 - *s2;
16061606
}
16071607

16081608
void ventoy_swap_img(img_info *img1, img_info *img2)

0 commit comments

Comments
 (0)