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
3c35345e
Commit
3c35345e
authored
Mar 01, 2021
by
longpanda
Browse files
remove the ASSERT warning in UEFI mode when boot fail.
parent
9f357f8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
EDK2/edk2_mod/edk2-edk2-stable201911/MdeModulePkg/Application/Ventoy/Ventoy.c
...dk2-stable201911/MdeModulePkg/Application/Ventoy/Ventoy.c
+8
-3
No files found.
EDK2/edk2_mod/edk2-edk2-stable201911/MdeModulePkg/Application/Ventoy/Ventoy.c
View file @
3c35345e
...
...
@@ -42,6 +42,7 @@ BOOLEAN gLoadIsoEfi = FALSE;
BOOLEAN
gIsoUdf
=
FALSE
;
ventoy_ram_disk
g_ramdisk_param
;
ventoy_chain_head
*
g_chain
;
void
*
g_vtoy_img_location_buf
;
ventoy_img_chunk
*
g_chunk
;
UINT8
*
g_os_param_reserved
;
UINT32
g_img_chunk_num
;
...
...
@@ -269,6 +270,7 @@ static int ventoy_update_image_location(ventoy_os_param *param)
}
address
=
(
UINTN
)
buffer
;
g_vtoy_img_location_buf
=
buffer
;
if
(
address
%
4096
)
{
...
...
@@ -873,12 +875,15 @@ EFI_STATUS EFIAPI ventoy_clean_env(VOID)
ventoy_delete_variable
();
if
(
g_
chain
->
os_param
.
vtoy_img_location_
addr
)
if
(
g_vtoy_img_location_
buf
)
{
FreePool
(
(
VOID
*
)(
UINTN
)
g_chain
->
os_param
.
vtoy_img_location_
addr
);
FreePool
(
g_
vtoy_img_location_
buf
);
}
FreePool
(
g_chain
);
if
(
!
gMemdiskMode
)
{
FreePool
(
g_chain
);
}
return
EFI_SUCCESS
;
}
...
...
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