VirtualBox

Ignore:
Timestamp:
Jan 27, 2017 9:26:58 AM (8 years ago)
Author:
vboxsync
Message:

VBoxManage: added a missing IMedium::RefreshState() call and removed another call which was superfluous

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp

    r64989 r65477  
    685685        // aborted by the user, the result is most likely a medium which doesn't
    686686        // work anymore.
     687        MediumState_T state;
     688        pMedium->RefreshState(&state);
    687689        LONG64 logicalSize;
    688690        pMedium->COMGETTER(LogicalSize)(&logicalSize);
     
    11831185        MediumState_T enmState;
    11841186        CHECK_ERROR_BREAK(pMedium, RefreshState(&enmState));
    1185         pMedium->RefreshState(&enmState);
    11861187        const char *pszState = "unknown";
    11871188        switch (enmState)
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