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
27eda4d1
"docs/vscode:/vscode.git/clone" did not exist on "6a8ed4a252e653ddd52bd31b3eb53edc1273ce40"
Commit
27eda4d1
authored
Dec 13, 2022
by
longpanda
Browse files
Fix the issue when booting Peux distro iso file.
parent
acf5a844
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletion
+29
-1
EDK2/edk2_mod/edk2-edk2-stable201911/MdeModulePkg/Application/Ventoy/VentoyProtocol.c
...le201911/MdeModulePkg/Application/Ventoy/VentoyProtocol.c
+29
-1
No files found.
EDK2/edk2_mod/edk2-edk2-stable201911/MdeModulePkg/Application/Ventoy/VentoyProtocol.c
View file @
27eda4d1
...
@@ -1491,6 +1491,34 @@ STATIC EFI_STATUS EFIAPI ventoy_wrapper_file_procotol(EFI_FILE_PROTOCOL *File, B
...
@@ -1491,6 +1491,34 @@ STATIC EFI_STATUS EFIAPI ventoy_wrapper_file_procotol(EFI_FILE_PROTOCOL *File, B
return
EFI_SUCCESS
;
return
EFI_SUCCESS
;
}
}
STATIC
BOOLEAN
EFIAPI
ventoy_replace_name_match
(
CHAR8
*
pReplace
,
CHAR8
*
pName
)
{
UINTN
Len1
,
Len2
;
Len1
=
AsciiStrLen
(
pReplace
);
Len2
=
AsciiStrLen
(
pName
);
if
(
Len1
==
0
||
Len2
==
0
)
{
return
FALSE
;
}
if
(
0
==
AsciiStriCmp
(
pReplace
,
pName
))
{
return
TRUE
;
}
if
(
Len1
>
2
&&
Len2
>
2
)
{
if
((
pReplace
[
0
]
!=
'\\'
)
&&
(
pName
[
0
]
==
'\\'
)
&&
(
0
==
AsciiStriCmp
(
pReplace
,
pName
+
1
)))
{
return
TRUE
;
}
}
return
FALSE
;
}
STATIC
EFI_STATUS
EFIAPI
ventoy_wrapper_file_open
STATIC
EFI_STATUS
EFIAPI
ventoy_wrapper_file_open
(
(
EFI_FILE_HANDLE
This
,
EFI_FILE_HANDLE
This
,
...
@@ -1534,7 +1562,7 @@ STATIC EFI_STATUS EFIAPI ventoy_wrapper_file_open
...
@@ -1534,7 +1562,7 @@ STATIC EFI_STATUS EFIAPI ventoy_wrapper_file_open
AsciiSPrint
(
TmpName
,
sizeof
(
TmpName
),
"%s"
,
Name
);
AsciiSPrint
(
TmpName
,
sizeof
(
TmpName
),
"%s"
,
Name
);
for
(
j
=
0
;
j
<
4
;
j
++
)
for
(
j
=
0
;
j
<
4
;
j
++
)
{
{
if
(
0
==
AsciiStriCmp
(
g_file_replace_list
[
i
].
old_file_name
[
j
],
TmpName
))
if
(
ventoy_replace_name_match
(
g_file_replace_list
[
i
].
old_file_name
[
j
],
TmpName
))
{
{
g_original_fclose
(
*
New
);
g_original_fclose
(
*
New
);
*
New
=
&
g_efi_file_replace
.
WrapperHandle
;
*
New
=
&
g_efi_file_replace
.
WrapperHandle
;
...
...
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