mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-06-05 01:04:20 -04:00
1.0.39 release
This commit is contained in:
parent
58d387f732
commit
f4bbec65ba
10 changed files with 148 additions and 12 deletions
|
@ -474,8 +474,12 @@ EFI_STATUS EFIAPI ventoy_block_io_read
|
|||
offset = Lba * 2048;
|
||||
}
|
||||
|
||||
VirtSec = g_chain->virt_img_size_in_bytes / 2048;
|
||||
if (Lba + secNum > VirtSec)
|
||||
VirtSec = g_chain->virt_img_size_in_bytes / 2048;
|
||||
if (Lba >= VirtSec)
|
||||
{
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
else if (Lba + secNum > VirtSec)
|
||||
{
|
||||
secNum = VirtSec - Lba;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue