VirtualBox

Changeset 18901 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Apr 15, 2009 12:04:59 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
45956
Message:

VBoxManage: fix the relative path name hack, it issued bogus errors for the API interpretation of relative path names.

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
2 edited

Legend:

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

    r18819 r18901  
    216216        CHECK_ERROR(a->virtualBox, OpenMachine(Bstr(szVMFileAbs), machine.asOutParam()));
    217217    }
    218     else
     218    else if (FAILED(rc))
    219219        CHECK_ERROR(a->virtualBox, OpenMachine(Bstr(a->argv[0]), machine.asOutParam()));
    220220    if (SUCCEEDED(rc))
  • TabularUnified trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp

    r18836 r18901  
    12831283            CHECK_ERROR(a->virtualBox, OpenHardDisk(Bstr(szFilenameAbs), AccessMode_ReadWrite, hardDisk.asOutParam()));
    12841284        }
    1285         else
     1285        else if (FAILED(rc))
    12861286            CHECK_ERROR(a->virtualBox, OpenHardDisk(Bstr(Filename), AccessMode_ReadWrite, hardDisk.asOutParam()));
    12871287        if (SUCCEEDED(rc) && hardDisk)
     
    13111311            CHECK_ERROR(a->virtualBox, OpenDVDImage(Bstr(szFilenameAbs), Guid(), dvdImage.asOutParam()));
    13121312        }
    1313         else
     1313        else if (FAILED(rc))
    13141314            CHECK_ERROR(a->virtualBox, OpenDVDImage(Bstr(Filename), Guid(), dvdImage.asOutParam()));
    13151315    }
     
    13311331            CHECK_ERROR(a->virtualBox, OpenFloppyImage(Bstr(szFilenameAbs), Guid(), floppyImage.asOutParam()));
    13321332        }
    1333         else
     1333        else if (FAILED(rc))
    13341334            CHECK_ERROR(a->virtualBox, OpenFloppyImage(Bstr(Filename), Guid(), floppyImage.asOutParam()));
    13351335    }
Note: See TracChangeset for help on using the changeset viewer.

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