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
7fa47247
Commit
7fa47247
authored
Mar 07, 2023
by
longpanda
Browse files
Fix the menu missing issue when there exist an invalid vlnk file. (#2228)
parent
2717405a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_browser.c
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_browser.c
+5
-0
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_cmd.c
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_cmd.c
+4
-0
No files found.
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_browser.c
View file @
7fa47247
...
@@ -392,6 +392,11 @@ static int ventoy_browser_iterate_dir(const char *filename, const struct grub_di
...
@@ -392,6 +392,11 @@ static int ventoy_browser_iterate_dir(const char *filename, const struct grub_di
return
0
;
return
0
;
}
}
if
(
grub_file_is_vlnk_suffix
(
filename
,
len
))
{
return
0
;
}
node
=
grub_zalloc
(
sizeof
(
browser_node
));
node
=
grub_zalloc
(
sizeof
(
browser_node
));
if
(
!
node
)
if
(
!
node
)
{
{
...
...
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_cmd.c
View file @
7fa47247
...
@@ -1767,6 +1767,10 @@ static int ventoy_check_vlnk_data(ventoy_vlnk *vlnk, int print, char *dst, int s
...
@@ -1767,6 +1767,10 @@ static int ventoy_check_vlnk_data(ventoy_vlnk *vlnk, int print, char *dst, int s
cur
->
fs
->
fs_close
(
&
file
);
cur
->
fs
->
fs_close
(
&
file
);
grub_snprintf
(
dst
,
size
-
1
,
"(%s)%s"
,
cur
->
device
,
vlnk
->
filepath
);
grub_snprintf
(
dst
,
size
-
1
,
"(%s)%s"
,
cur
->
device
,
vlnk
->
filepath
);
}
}
else
{
grub_errno
=
0
;
}
}
}
}
}
}
}
...
...
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