VirtualBox

Changeset 52933 in vbox for trunk


Ignore:
Timestamp:
Oct 2, 2014 1:44:24 PM (10 years ago)
Author:
vboxsync
Message:

MachineImpl: return code mismatch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r52861 r52933  
    84258425                        DECODE_STR_MAX);
    84268426    com::SafeArray<BYTE> iconByte(cbOut);
    8427     HRESULT rc = RTBase64Decode(pszStr, iconByte.raw(), cbOut, NULL, NULL);
    8428     if (FAILED(rc))
     8427    int vrc = RTBase64Decode(pszStr, iconByte.raw(), cbOut, NULL, NULL);
     8428    if (RT_FAILURE(vrc))
    84298429        return setError(E_FAIL,
    8430                         tr("Failure to Decode Icon Data. '%s' (%d)"),
     8430                        tr("Failure to Decode Icon Data. '%s' (%Rrc)"),
    84318431                        pszStr,
    8432                         rc);
     8432                        vrc);
    84338433    mUserData->mIcon.resize(iconByte.size());
    84348434    memcpy(&mUserData->mIcon[0], iconByte.raw(), mUserData->mIcon.size());
     
    84368436    // look up the object by Id to check it is valid
    84378437    ComPtr<IGuestOSType> guestOSType;
    8438     rc = mParent->GetGuestOSType(Bstr(mUserData->s.strOsType).raw(),
     8438    HRESULT rc = mParent->GetGuestOSType(Bstr(mUserData->s.strOsType).raw(),
    84398439                                         guestOSType.asOutParam());
    84408440    if (FAILED(rc)) return rc;
     
    84468446    {
    84478447        Utf8Str stateFilePathFull(config.strStateFile);
    8448         int vrc = i_calculateFullPath(stateFilePathFull, stateFilePathFull);
     8448        vrc = i_calculateFullPath(stateFilePathFull, stateFilePathFull);
    84498449        if (RT_FAILURE(vrc))
    84508450            return setError(E_FAIL,
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