VirtualBox

Changeset 17652 in vbox


Ignore:
Timestamp:
Mar 10, 2009 11:01:01 PM (16 years ago)
Author:
vboxsync
Message:

Main: Don't allow to reset differencing hard disks that have children.

File:
1 edited

Legend:

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

    r17401 r17652  
    14531453            m.locationFull.raw());
    14541454
    1455     HRESULT rc = LockWrite (NULL);
     1455    HRESULT rc = canClose();
     1456    CheckComRCReturnRC (rc);
     1457
     1458    rc = LockWrite (NULL);
    14561459    CheckComRCReturnRC (rc);
    14571460
     
    31103113 * @note Called from this object's AutoMayUninitSpan and from under mVirtualBox
    31113114 *       write lock.
     3115 *
     3116 * @note Also reused by HardDisk::Reset().
    31123117 *
    31133118 * @note Locks treeLock() for reading.
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