VirtualBox

Changeset 43906 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Nov 17, 2012 2:00:44 PM (12 years ago)
Author:
vboxsync
Message:

Fix attaching a hard disk by UUID through VBoxManage (4.2 regression, see public #11209)

File:
1 edited

Legend:

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

    r43479 r43906  
    19401940    if (FAILED(autoCaller.rc())) return autoCaller.rc();
    19411941
     1942    Guid id(aLocation);
    19421943    ComObjPtr<Medium> pMedium;
    19431944
     
    19521953    {
    19531954        case DeviceType_HardDisk:
    1954             rc = findHardDiskByLocation(aLocation,
    1955                                    false, /* aSetError */
    1956                                    &pMedium);
     1955            if (!id.isEmpty())
     1956                rc = findHardDiskById(id, false /* setError */, &pMedium);
     1957            else
     1958                rc = findHardDiskByLocation(aLocation,
     1959                                            false, /* aSetError */
     1960                                            &pMedium);
    19571961        break;
    19581962
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