VirtualBox

Changeset 107553 in vbox for trunk


Ignore:
Timestamp:
Jan 9, 2025 8:40:43 AM (10 days ago)
Author:
vboxsync
Message:

Main/src-server/VirtualBoxImpl.cpp: Missing error check and disable unused code, bugref:3409

File:
1 edited

Legend:

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

    r107539 r107553  
    26382638                return setError(E_INVALIDARG, tr("Format must be Valid Type%s"), format.c_str());
    26392639
     2640#if 0 /* unused */
    26402641            // enforce read-only for DVDs even if caller specified ReadWrite
    26412642            if (aDeviceType == DeviceType_DVD)
    26422643                aAccessMode = AccessMode_ReadOnly;
     2644#endif
    26432645
    26442646             hrc = medium->init(this,
     
    52105212                settings::MachineRegistryEntry mre;
    52115213                hrc = pMachine->i_saveRegistryEntry(mre);
     5214                if (FAILED(hrc)) throw hrc;
    52125215                m->pMainConfigFile->llMachines.push_back(mre);
    52135216            }
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