VirtualBox

Changeset 23769 in vbox


Ignore:
Timestamp:
Oct 14, 2009 3:41:33 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53505
Message:

Main/Machine: fix null medium issue introduced with the previous fix

File:
1 edited

Legend:

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

    r23763 r23769  
    55845584
    55855585        /* associate the medium with this machine and snapshot */
    5586         if (mType == IsSnapshotMachine)
    5587             rc = medium->attachTo(mData->mUuid, *aSnapshotId);
    5588         else
    5589             rc = medium->attachTo(mData->mUuid);
     5586        if (!medium.isNull())
     5587        {
     5588            if (mType == IsSnapshotMachine)
     5589                rc = medium->attachTo(mData->mUuid, *aSnapshotId);
     5590            else
     5591                rc = medium->attachTo(mData->mUuid);
     5592        }
    55905593        AssertComRCBreakRC (rc);
    55915594
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