From: longpanda Date: Sat, 4 Jul 2020 14:39:11 +0000 (+0800) Subject: add GPT support X-Git-Tag: v1.0.15~6 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/49ca1e05a4ca1a283d777e15832cf5b7a7c9c6e0?ds=inline add GPT support --- diff --git a/Ventoy2Disk/Ventoy2Disk/Ventoy2Disk.c b/Ventoy2Disk/Ventoy2Disk/Ventoy2Disk.c index f8d709f..e6cb741 100644 --- a/Ventoy2Disk/Ventoy2Disk/Ventoy2Disk.c +++ b/Ventoy2Disk/Ventoy2Disk/Ventoy2Disk.c @@ -107,7 +107,7 @@ static BOOL IsVentoyPhyDrive(int PhyDrive, UINT64 SizeBytes, MBR_HEAD *pMBR, UIN return FALSE; } - if (MBR.PartTbl[1].FsFlag == 0xEE) + if (MBR.PartTbl[0].FsFlag == 0xEE) { pGpt = malloc(sizeof(VTOY_GPT_INFO)); if (!pGpt)