VirtualBox

Changeset 85820 in vbox


Ignore:
Timestamp:
Aug 18, 2020 1:23:26 PM (4 years ago)
Author:
vboxsync
Message:

Main: bugref:9623: Allow MediumType_Readonly and DVD in particular to be attached twice

File:
1 edited

Legend:

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

    r85284 r85820  
    42944294
    42954295        return S_OK;
     4296    }
     4297
     4298    {
     4299        // Allow MediumType_Readonly mediums and DVD in particular to be attached twice.
     4300        AutoReadLock arlock(this COMMA_LOCKVAL_SRC_POS);
     4301        if (m->type == MediumType_Readonly || m->devType == DeviceType_DVD)
     4302        {
     4303            BackRef ref(aMachineId, aSnapshotId);
     4304            m->backRefs.push_back(ref);
     4305            return S_OK;
     4306        }
    42964307    }
    42974308
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