VirtualBox

Changeset 43907 in vbox


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

Same for DVD and floppy images

File:
1 edited

Legend:

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

    r43906 r43907  
    19631963        case DeviceType_Floppy:
    19641964        case DeviceType_DVD:
    1965             rc = findDVDOrFloppyImage(deviceType,
    1966                                  NULL, /* guid */
    1967                                  aLocation,
    1968                                  false, /* aSetError */
    1969                                  &pMedium);
     1965            if (!id.isEmpty())
     1966                rc = findDVDOrFloppyImage(deviceType, &id, Utf8Str::Empty,
     1967                                          false /* setError */, &pMedium);
     1968            else
     1969                rc = findDVDOrFloppyImage(deviceType, NULL, aLocation,
     1970                                          false /* setError */, &pMedium);
    19701971
    19711972            // enforce read-only for DVDs even if caller specified ReadWrite
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