Skip to content

Commit

Permalink
. 修正 NTBOOT 外部命令启动逻辑分区的 wim/vhd
Browse files Browse the repository at this point in the history
  • Loading branch information
yaya2007 committed Jul 8, 2023
1 parent fef1eec commit 8d02b20
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions stage2/disk_io.c
Expand Up @@ -809,8 +809,11 @@ next_pc_slice (void)
*next_partition_start = tmp_start;
*next_partition_type = PC_SLICE_TYPE (next_partition_buf, *next_partition_entry);
*next_partition_len = PC_SLICE_LENGTH (next_partition_buf, *next_partition_entry);
grub_memset (&partition_signature, 0, 16);
*(unsigned int *)partition_signature = PC_DISK_SIG (next_partition_buf); //MBR分区签名
if (pc_slice_no == -1)
{
grub_memset (&partition_signature, 0, 16);
*(unsigned int *)partition_signature = PC_DISK_SIG (next_partition_buf); //MBR分区签名(使用磁盘签名) 逻辑分区的PC_DISK_SIG (next_partition_buf)无效
}
partition_activity_flag = PC_SLICE_FLAG(next_partition_buf, *next_partition_entry);
/* if overflow ... */

Expand Down

0 comments on commit 8d02b20

Please sign in to comment.