Fix the order issue in TreeView mode. (#3218)
Some checks failed
Ventoy CI / build (push) Has been cancelled
Mirror GitHub to Gitee / Sync-GitHub-to-Gitee (push) Has been cancelled

This commit is contained in:
longpanda
2025-08-17 17:50:17 +08:00
parent bb94ec6d6f
commit de085ba086

View File

@@ -1598,11 +1598,11 @@ static int ventoy_cmp_subdir(img_iterator_node *node1, img_iterator_node *node2)
if (c1 != c2) if (c1 != c2)
{ {
break; return (c1 - c2);
} }
} }
return (c1 - c2); return *s1 - *s2;
} }
void ventoy_swap_img(img_info *img1, img_info *img2) void ventoy_swap_img(img_info *img1, img_info *img2)