Changeset 54443 in vbox
- Timestamp:
- Feb 24, 2015 12:33:57 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
r54438 r54443 56 56 { 57 57 int rc = VINF_SUCCESS; 58 unsigned MediumVariant = (unsigned)(*pMediumVariant);58 unsigned uMediumVariant = (unsigned)(*pMediumVariant); 59 59 while (psz && *psz && RT_SUCCESS(rc)) 60 60 { … … 70 70 // variant, whereas the other flags are cumulative. 71 71 if (!RTStrNICmp(psz, "standard", len)) 72 MediumVariant = MediumVariant_Standard;72 uMediumVariant = MediumVariant_Standard; 73 73 else if ( !RTStrNICmp(psz, "fixed", len) 74 74 || !RTStrNICmp(psz, "static", len)) 75 MediumVariant |= MediumVariant_Fixed;75 uMediumVariant |= MediumVariant_Fixed; 76 76 else if (!RTStrNICmp(psz, "Diff", len)) 77 MediumVariant |= MediumVariant_Diff;77 uMediumVariant |= MediumVariant_Diff; 78 78 else if (!RTStrNICmp(psz, "split2g", len)) 79 MediumVariant |= MediumVariant_VmdkSplit2G;79 uMediumVariant |= MediumVariant_VmdkSplit2G; 80 80 else if ( !RTStrNICmp(psz, "stream", len) 81 81 || !RTStrNICmp(psz, "streamoptimized", len)) 82 MediumVariant |= MediumVariant_VmdkStreamOptimized;82 uMediumVariant |= MediumVariant_VmdkStreamOptimized; 83 83 else if (!RTStrNICmp(psz, "esx", len)) 84 MediumVariant |= MediumVariant_VmdkESX;84 uMediumVariant |= MediumVariant_VmdkESX; 85 85 else 86 86 rc = VERR_PARSE_ERROR; … … 93 93 94 94 if (RT_SUCCESS(rc)) 95 *pMediumVariant = (MediumVariant_T) MediumVariant;95 *pMediumVariant = (MediumVariant_T)uMediumVariant; 96 96 return rc; 97 97 }
Note:
See TracChangeset
for help on using the changeset viewer.