mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-04-19 08:55:16 +00:00
Merge pull request #3 from Islam-Darwish/patch-4
fix win 11 error 0x80070001
This commit is contained in:
commit
11b0e89e33
@ -2520,7 +2520,7 @@ int PartitionResizeForVentoy(PHY_DRIVE_INFO *pPhyDrive)
|
|||||||
|
|
||||||
pGPT->PartTbl[1].StartLBA = pGPT->PartTbl[0].LastLBA + 1;
|
pGPT->PartTbl[1].StartLBA = pGPT->PartTbl[0].LastLBA + 1;
|
||||||
pGPT->PartTbl[1].LastLBA = pGPT->PartTbl[1].StartLBA + VENTOY_EFI_PART_SIZE / 512 - 1;
|
pGPT->PartTbl[1].LastLBA = pGPT->PartTbl[1].StartLBA + VENTOY_EFI_PART_SIZE / 512 - 1;
|
||||||
pGPT->PartTbl[1].Attr = 0xC000000000000001ULL;
|
pGPT->PartTbl[1].Attr = 0x9000000000000000ULL;
|
||||||
memcpy(pGPT->PartTbl[1].Name, L"VTOYEFI", 7 * 2);
|
memcpy(pGPT->PartTbl[1].Name, L"VTOYEFI", 7 * 2);
|
||||||
|
|
||||||
//Update CRC
|
//Update CRC
|
||||||
|
Loading…
x
Reference in New Issue
Block a user