VirtualBox

Changeset 44240 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jan 7, 2013 8:14:22 PM (12 years ago)
Author:
vboxsync
Message:

Main: Fix assertion, pMedium can be Null if there is an error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MediumImpl.cpp

    r44091 r44240  
    74327432            mrc = pParent->m->pVirtualBox->registerMedium(pTarget, &pMedium,
    74337433                                                          DeviceType_HardDisk);
    7434             Assert(pTarget == pMedium);
     7434            Assert(   FAILED(mrc)
     7435                   || pTarget == pMedium);
    74357436            eik.fetch();
    74367437
     
    74467447            mrc = m->pVirtualBox->registerMedium(pTarget, &pMedium,
    74477448                                                 DeviceType_HardDisk);
    7448             Assert(pTarget == pMedium);
     7449            Assert(   FAILED(mrc)
     7450                   || pTarget == pMedium);
    74497451            eik.fetch();
    74507452        }
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