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
8ebe972f
Commit
8ebe972f
authored
Apr 02, 2021
by
longpanda
Browse files
Fixup a bug when booting special Windows/WinPE ISO file.
parent
39975dd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_windows.c
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_windows.c
+8
-1
No files found.
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_windows.c
View file @
8ebe972f
...
@@ -860,7 +860,14 @@ static int ventoy_wimdows_locate_wim(const char *disk, wim_patch *patch)
...
@@ -860,7 +860,14 @@ static int ventoy_wimdows_locate_wim(const char *disk, wim_patch *patch)
}
}
security
=
(
wim_security_header
*
)
decompress_data
;
security
=
(
wim_security_header
*
)
decompress_data
;
rootdir
=
(
wim_directory_entry
*
)(
decompress_data
+
((
security
->
len
+
7
)
&
0xFFFFFFF8U
));
if
(
security
->
len
>
0
)
{
rootdir
=
(
wim_directory_entry
*
)(
decompress_data
+
((
security
->
len
+
7
)
&
0xFFFFFFF8U
));
}
else
{
rootdir
=
(
wim_directory_entry
*
)(
decompress_data
+
8
);
}
/* search winpeshl.exe dirent entry */
/* search winpeshl.exe dirent entry */
search
=
search_replace_wim_dirent
(
decompress_data
,
rootdir
);
search
=
search_replace_wim_dirent
(
decompress_data
,
rootdir
);
...
...
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