From c3202f3f8279d2fac6b0e5594030a88bf65ae1b7 Mon Sep 17 00:00:00 2001 From: Islam Darwish <51976000+Islam-Darwish@users.noreply.github.com> Date: Sun, 9 Feb 2025 17:39:51 +0200 Subject: [PATCH] fix win 11 error 0x80070001 --- Ventoy2Disk/Ventoy2Disk/PhyDrive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ventoy2Disk/Ventoy2Disk/PhyDrive.c b/Ventoy2Disk/Ventoy2Disk/PhyDrive.c index d64916e5..f0f9148e 100644 --- a/Ventoy2Disk/Ventoy2Disk/PhyDrive.c +++ b/Ventoy2Disk/Ventoy2Disk/PhyDrive.c @@ -2520,7 +2520,7 @@ int PartitionResizeForVentoy(PHY_DRIVE_INFO *pPhyDrive) 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].Attr = 0xC000000000000001ULL; + pGPT->PartTbl[1].Attr = 0x9000000000000000ULL; memcpy(pGPT->PartTbl[1].Name, L"VTOYEFI", 7 * 2); //Update CRC