Changeset 107563 in vbox for trunk/src/VBox
- Timestamp:
- Jan 9, 2025 9:07:30 AM (10 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImplCloneVM.cpp
r106061 r107563 1255 1255 ComPtr<IMediumFormat> pSrcFormat; 1256 1256 hrc = pMedium->COMGETTER(MediumFormat)(pSrcFormat.asOutParam()); 1257 if (FAILED(hrc)) throw hrc; 1258 1257 1259 ULONG uSrcCaps = 0; 1258 1260 com::SafeArray <MediumFormatCapabilities_T> mediumFormatCap; 1259 1261 hrc = pSrcFormat->COMGETTER(Capabilities)(ComSafeArrayAsOutParam(mediumFormatCap)); 1260 1261 1262 if (FAILED(hrc)) throw hrc; 1262 else 1263 { 1264 for (ULONG j = 0; j < mediumFormatCap.size(); j++) 1265 uSrcCaps |= mediumFormatCap[j]; 1266 } 1263 1264 for (ULONG j = 0; j < mediumFormatCap.size(); j++) 1265 uSrcCaps |= mediumFormatCap[j]; 1267 1266 1268 1267 /* Default format? */
Note:
See TracChangeset
for help on using the changeset viewer.