VirtualBox

Changeset 35524 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 13, 2011 1:41:03 PM (14 years ago)
Author:
vboxsync
Message:

FE/Qt: fixed a bug when displaying an error info which is Null

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/COMDefs.cpp

    r33540 r35524  
    226226void COMErrorInfo::init(const CVirtualBoxErrorInfo &info)
    227227{
    228     AssertReturnVoid (!info.isNull());
     228    if (info.isNull())
     229    {
     230        mIsNull = true;
     231        mIsBasicAvailable = false;
     232        mIsFullAvailable = false;
     233        mResultCode = S_OK;
     234        m_pNext = NULL;
     235        AssertMsgFailedReturnVoid(("error info is NULL!\n"));
     236    }
    229237
    230238    bool gotSomething = false;
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