Changeset 85221 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 11, 2020 4:13:15 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp
r82968 r85221 124 124 { 125 125 /** partitioning type - MBR or GPT */ 126 VDISKPARTTYPE uPartitioningType;126 VDISKPARTTYPE uPartitioningType; 127 127 unsigned cPartitions; 128 128 HOSTPARTITION aPartitions[HOSTPARTITION_MAX]; … … 759 759 if (aBuffer[450] == 0xEE)/* check the sign of the GPT disk*/ 760 760 { 761 partitioningType = GPT;762 pPart->uPartitioningType = GPT;//partitioningType;761 partitioningType = VDISKPARTTYPE_GPT; 762 pPart->uPartitioningType = VDISKPARTTYPE_GPT;//partitioningType; 763 763 764 764 if (aBuffer[510] != 0x55 || aBuffer[511] != 0xaa) … … 875 875 else 876 876 { 877 partitioningType = MBR;878 pPart->uPartitioningType = MBR;//partitioningType;877 partitioningType = VDISKPARTTYPE_MBR; 878 pPart->uPartitioningType = VDISKPARTTYPE_MBR;//partitioningType; 879 879 880 880 if (aBuffer[510] != 0x55 || aBuffer[511] != 0xaa) … … 1035 1035 1036 1036 /* Fill out partitioning location info for backup GPT. */ 1037 if (partitioningType == GPT)1037 if (partitioningType == VDISKPARTTYPE_GPT) 1038 1038 { 1039 1039 pPart->aPartitions[pPart->cPartitions-1].uPartDataStart = lastUsableLBA+1; … … 1775 1775 if (!RawDescriptor.pPartDescs[i].cbData) 1776 1776 { 1777 if (RawDescriptor.uPartitioningType == MBR)1777 if (RawDescriptor.uPartitioningType == VDISKPARTTYPE_MBR) 1778 1778 { 1779 1779 RTMsgError("MBR/EPT overlaps with data area"); … … 1781 1781 goto out; 1782 1782 } 1783 else1783 if (RawDescriptor.cPartDescs != i+1) 1784 1784 { 1785 if (RawDescriptor.cPartDescs != i+1) 1786 { 1787 RTMsgError("GPT overlaps with data area"); 1788 vrc = VERR_INVALID_PARAMETER; 1789 goto out; 1790 } 1785 RTMsgError("GPT overlaps with data area"); 1786 vrc = VERR_INVALID_PARAMETER; 1787 goto out; 1791 1788 } 1792 1789 }
Note:
See TracChangeset
for help on using the changeset viewer.