VirtualBox

Changeset 31300 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 2, 2010 1:22:27 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64327
Message:

Main: fix floppy/dvd breakage

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

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

    r31281 r31300  
    32323232
    32333233    return strFormat;
     3234}
     3235
     3236/**
     3237 * Returns the medium device type. Must have caller + locking!
     3238 * @return
     3239 */
     3240DeviceType_T Medium::getDeviceType() const
     3241{
     3242    return m->devType;
    32343243}
    32353244
  • trunk/src/VBox/Main/VirtualBoxImpl.cpp

    r31296 r31300  
    28252825        if (found)
    28262826        {
    2827             if (pMedium->getType() != mediumType)
     2827            if (pMedium->getDeviceType() != mediumType)
    28282828            {
    28292829                if (mediumType == DeviceType_DVD)
  • trunk/src/VBox/Main/include/MediumImpl.h

    r31236 r31300  
    164164    const ComObjPtr<MediumFormat> & getMediumFormat() const;
    165165    uint64_t getSize() const;
     166    DeviceType_T getDeviceType() const;
    166167    MediumType_T getType() const;
    167168    Utf8Str getName();
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