Support WinPE which contains pecmd.exe

This commit is contained in:
longpanda
2021-07-16 01:03:01 +08:00
parent 47f9f2c42c
commit 4c71d7c190
7 changed files with 348 additions and 50 deletions

View File

@@ -483,6 +483,8 @@ EFI_STATUS EFIAPI ventoy_block_io_read_real
secNum = VirtSec - Lba;
}
debug("XXX block_io_read_real sector:%u count:%u Buffer:%p", (UINT32)Lba, (UINT32)BufferSize / 2048, Buffer);
if (secNum > g_sector_flag_num)
{
cur_flag = AllocatePool(secNum * sizeof(ventoy_sector_flag));