Changeset 86134 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Sep 16, 2020 3:39:09 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp
r85929 r86134 1602 1602 { 1603 1603 ComPtr<IHostDrive> pHostDrive = apHostDrives[i]; 1604 1604 /* 1605 * The drive path and the model are obtained using different way 1606 * outside of the IHostDrive object, therefore, they are defined 1607 * even if another info is not available. 1608 */ 1605 1609 com::Bstr bstrDrivePath; 1606 1610 CHECK_ERROR(pHostDrive,COMGETTER(DrivePath)(bstrDrivePath.asOutParam())); … … 1608 1612 1609 1613 com::Bstr bstrModel; 1614 CHECK_ERROR(pHostDrive,COMGETTER(Model)(bstrModel.asOutParam())); 1615 if (bstrModel.isNotEmpty()) 1616 RTPrintf("Model: %ls\n", bstrModel.raw()); 1617 else 1618 RTPrintf("Model: Unknown\n"); 1619 1610 1620 com::Bstr bstrUuidDisk; 1611 1621 ULONG cbSectorSize = 0; … … 1613 1623 PartitioningType_T partitioningType; 1614 1624 HRESULT hrc; 1615 if ( SUCCEEDED(hrc = pHostDrive->COMGETTER(Model)(bstrModel.asOutParam())) 1616 && SUCCEEDED(hrc = pHostDrive->COMGETTER(Uuid)(bstrUuidDisk.asOutParam())) 1625 if ( SUCCEEDED(hrc = pHostDrive->COMGETTER(Uuid)(bstrUuidDisk.asOutParam())) 1617 1626 && SUCCEEDED(hrc = pHostDrive->COMGETTER(SectorSize)(&cbSectorSize)) 1618 1627 && SUCCEEDED(hrc = pHostDrive->COMGETTER(Size)(&cbSize)) 1619 1628 && SUCCEEDED(hrc = pHostDrive->COMGETTER(PartitioningType)(&partitioningType))) 1620 1629 { 1621 if (bstrModel.isNotEmpty())1622 RTPrintf("Model: %ls\n", bstrModel.raw());1623 else1624 RTPrintf("Model: Unknown\n");1625 1626 1630 if (partitioningType == PartitioningType_GPT || com::Guid(bstrUuidDisk).isZero()) 1627 1631 RTPrintf("UUID: %ls\n", bstrUuidDisk.raw());
Note:
See TracChangeset
for help on using the changeset viewer.