VirtualBox

Changeset 24401 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 5, 2009 5:10:18 PM (15 years ago)
Author:
vboxsync
Message:

MediumAttachment: get the controller only if mParent is valid

File:
1 edited

Legend:

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

    r23928 r24401  
    193193     * to the storage controller, but can't have that right now due to
    194194     * how objects are created for settings rollback support. */
    195     HRESULT rc = mParent->GetStorageControllerByName(m->controllerName, aController);
     195    HRESULT rc = E_FAIL;
     196
     197    if (mParent)
     198        rc = mParent->GetStorageControllerByName(m->controllerName, aController);
    196199
    197200    LogFlowThisFuncLeave();
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