"vscode:/vscode.git/clone" did not exist on "46377f8842e512805a3b9cbbfab026e39a82d346"
Commit d8bca311 authored by longpanda's avatar longpanda
Browse files

Fix a bug when booting linux vdisk (.vtoy) file by F2 browser mode or by...

Fix a bug when booting linux vdisk (.vtoy) file by F2 browser mode or by ventoy_grub.cfg in Legacy BIOS mode.
parent 025425f2
No preview for this file type
...@@ -1442,10 +1442,17 @@ unsigned int ventoy_int13_hook (ventoy_chain_head *chain) ...@@ -1442,10 +1442,17 @@ unsigned int ventoy_int13_hook (ventoy_chain_head *chain)
} }
if (chain->os_param.vtoy_reserved[6]) if (chain->os_param.vtoy_reserved[6])
{
if (g_hddmode)
{
/* drive map no need for linux vtoy/img boot */
}
else
{ {
g_drive_map1 = 0x80; g_drive_map1 = 0x80;
g_drive_map2 = 0x81; g_drive_map2 = 0x81;
} }
}
else if (chain->disk_drive >= 0x80 && chain->drive_map >= 0x80) else if (chain->disk_drive >= 0x80 && chain->drive_map >= 0x80)
{ {
g_drive_map1 = chain->disk_drive; g_drive_map1 = chain->disk_drive;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment