Changeset 59582 in vbox for trunk/src/VBox/Main
- Timestamp:
- Feb 4, 2016 3:01:22 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/ApplianceImplImport.cpp
r59577 r59582 2076 2076 else 2077 2077 { 2078 bool fGzipUsed = !(di.strCompression.compare("gzip",Utf8Str::CaseInsensitive));2078 bool fGzipUsed = di.strCompression.compare("gzip",Utf8Str::CaseInsensitive) == 0; 2079 2079 /* check read file to GZIP compression */ 2080 2080 try … … 2135 2135 bool chExt = m->optListImport.contains(ImportOptions_ImportToVDI); 2136 2136 2137 char *pszSuff = NULL; 2138 2139 if ((pszSuff = RTPathSuffix(strTargetPath->c_str()))!=NULL) 2137 char *pszSuff = RTPathSuffix(strTargetPath->c_str()); 2138 if (pszSuff != NULL) 2140 2139 { 2141 2140 /* … … 2183 2182 if (FAILED(rc)) 2184 2183 throw rc; 2185 else 2186 { 2187 for (ULONG j = 0; j < mediumFormatCap.size(); j++) 2188 lCabs |= mediumFormatCap[j]; 2189 } 2190 2191 if (!( ((lCabs & MediumFormatCapabilities_CreateFixed) == MediumFormatCapabilities_CreateFixed) 2192 || ((lCabs & MediumFormatCapabilities_CreateDynamic) == MediumFormatCapabilities_CreateDynamic))) 2184 2185 for (ULONG j = 0; j < mediumFormatCap.size(); j++) 2186 lCabs |= mediumFormatCap[j]; 2187 2188 if ( !(lCabs & MediumFormatCapabilities_CreateFixed) 2189 && !(lCabs & MediumFormatCapabilities_CreateDynamic) ) 2193 2190 throw setError(VBOX_E_NOT_SUPPORTED, 2194 2191 tr("Could not find a valid medium format for the target disk '%s'"),
Note:
See TracChangeset
for help on using the changeset viewer.