VirtualBox

Ignore:
Timestamp:
Jan 16, 2009 2:02:20 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
41663
Message:

Main: Fixed: CD/DVD and Floppy not locked for reading when manually attached at VM runtime (#3504).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/FloppyDriveImpl.h

    r15334 r15991  
    4343        Data()
    4444        {
    45             mEnabled    = true;
    46             mState = DriveState_NotMounted;
     45            enabled = true;
     46            state = DriveState_NotMounted;
    4747        }
    4848
     
    5050        {
    5151            return this == &that ||
    52                    (mState == that.mState &&
    53                     mImage.equalsTo (that.mImage) &&
    54                     mHostDrive.equalsTo (that.mHostDrive));
     52                   (state == that.state &&
     53                    image.equalsTo (that.image) &&
     54                    hostDrive.equalsTo (that.hostDrive));
    5555        }
    5656
    57         BOOL mEnabled;
    58         ComObjPtr <FloppyImage2> mImage;
    59         ComPtr <IHostFloppyDrive> mHostDrive;
    60         DriveState_T mState;
     57        BOOL enabled;
     58        ComObjPtr <FloppyImage2> image;
     59        ComPtr <IHostFloppyDrive> hostDrive;
     60        DriveState_T state;
    6161    };
    6262
     
    102102    HRESULT saveSettings (settings::Key &aMachineNode);
    103103
    104     bool isModified() { AutoWriteLock alock (this); return mData.isBackedUp(); }
    105     bool isReallyModified() { AutoWriteLock alock (this); return mData.hasActualChanges(); }
     104    bool isModified() { AutoWriteLock alock (this); return m.isBackedUp(); }
     105    bool isReallyModified() { AutoWriteLock alock (this); return m.hasActualChanges(); }
    106106    bool rollback();
    107107    void commit();
     
    113113    // (ensure there is a caller and a read lock before calling them!)
    114114
    115     Backupable <Data> &data() { return mData; }
     115    Backupable <Data> &data() { return m; }
    116116
    117117    // for VirtualBoxSupportErrorInfoImpl
     
    123123    const ComObjPtr <FloppyDrive> mPeer;
    124124
    125     Backupable <Data> mData;
     125    Backupable <Data> m;
    126126};
    127127
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