Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
82a8b59b
Commit
82a8b59b
authored
Oct 08, 2020
by
longpanda
Browse files
fix issue #512
show file with name .iso
parent
b53e1fb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c
+2
-2
No files found.
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c
View file @
82a8b59b
...
@@ -1197,7 +1197,7 @@ static int ventoy_colect_img_files(const char *filename, const struct grub_dirho
...
@@ -1197,7 +1197,7 @@ static int ventoy_colect_img_files(const char *filename, const struct grub_dirho
else
else
{
{
debug
(
"Find a file %s
\n
"
,
filename
);
debug
(
"Find a file %s
\n
"
,
filename
);
if
(
len
<
=
4
)
if
(
len
<
4
)
{
{
return
0
;
return
0
;
}
}
...
@@ -1211,7 +1211,7 @@ static int ventoy_colect_img_files(const char *filename, const struct grub_dirho
...
@@ -1211,7 +1211,7 @@ static int ventoy_colect_img_files(const char *filename, const struct grub_dirho
type
=
img_type_wim
;
type
=
img_type_wim
;
}
}
else
if
(
g_vhdboot_enable
&&
(
0
==
grub_strcasecmp
(
filename
+
len
-
4
,
".vhd"
)
||
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
;
type
=
img_type_vhd
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment