mirror of
https://github.com/ventoy/Ventoy.git
synced 2024-12-26 07:05:58 -05:00
parent
b53e1fb8a8
commit
82a8b59bc7
@ -1197,7 +1197,7 @@ static int ventoy_colect_img_files(const char *filename, const struct grub_dirho
|
||||
else
|
||||
{
|
||||
debug("Find a file %s\n", filename);
|
||||
if (len <= 4)
|
||||
if (len < 4)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@ -1211,7 +1211,7 @@ static int ventoy_colect_img_files(const char *filename, const struct grub_dirho
|
||||
type = img_type_wim;
|
||||
}
|
||||
else if (g_vhdboot_enable && (0 == grub_strcasecmp(filename + len - 4, ".vhd") ||
|
||||
0 == grub_strcasecmp(filename + len - 5, ".vhdx")))
|
||||
(len >= 5 && 0 == grub_strcasecmp(filename + len - 5, ".vhdx"))))
|
||||
{
|
||||
type = img_type_vhd;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user