1.0.39 release

This commit is contained in:
longpanda 2021-03-28 17:18:23 +08:00
parent 58d387f732
commit f4bbec65ba
10 changed files with 148 additions and 12 deletions

View file

@ -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;
}