mirror of https://github.com/ventoy/Ventoy.git
Fixup a bug when booting special Windows/WinPE ISO file.
This commit is contained in:
parent
39975dd1c3
commit
8ebe972f6e
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue