VirtualBox

Changeset 54443 in vbox


Ignore:
Timestamp:
Feb 24, 2015 12:33:57 PM (10 years ago)
Author:
vboxsync
Message:

Frontends/VBoxManage/VBoxManageDisk.cpp: fix COM incompatibility (variable name was the same as the COM type)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp

    r54438 r54443  
    5656{
    5757    int rc = VINF_SUCCESS;
    58     unsigned MediumVariant = (unsigned)(*pMediumVariant);
     58    unsigned uMediumVariant = (unsigned)(*pMediumVariant);
    5959    while (psz && *psz && RT_SUCCESS(rc))
    6060    {
     
    7070            // variant, whereas the other flags are cumulative.
    7171            if (!RTStrNICmp(psz, "standard", len))
    72                 MediumVariant = MediumVariant_Standard;
     72                uMediumVariant = MediumVariant_Standard;
    7373            else if (   !RTStrNICmp(psz, "fixed", len)
    7474                     || !RTStrNICmp(psz, "static", len))
    75                 MediumVariant |= MediumVariant_Fixed;
     75                uMediumVariant |= MediumVariant_Fixed;
    7676            else if (!RTStrNICmp(psz, "Diff", len))
    77                 MediumVariant |= MediumVariant_Diff;
     77                uMediumVariant |= MediumVariant_Diff;
    7878            else if (!RTStrNICmp(psz, "split2g", len))
    79                 MediumVariant |= MediumVariant_VmdkSplit2G;
     79                uMediumVariant |= MediumVariant_VmdkSplit2G;
    8080            else if (   !RTStrNICmp(psz, "stream", len)
    8181                     || !RTStrNICmp(psz, "streamoptimized", len))
    82                 MediumVariant |= MediumVariant_VmdkStreamOptimized;
     82                uMediumVariant |= MediumVariant_VmdkStreamOptimized;
    8383            else if (!RTStrNICmp(psz, "esx", len))
    84                 MediumVariant |= MediumVariant_VmdkESX;
     84                uMediumVariant |= MediumVariant_VmdkESX;
    8585            else
    8686                rc = VERR_PARSE_ERROR;
     
    9393
    9494    if (RT_SUCCESS(rc))
    95         *pMediumVariant = (MediumVariant_T)MediumVariant;
     95        *pMediumVariant = (MediumVariant_T)uMediumVariant;
    9696    return rc;
    9797}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette