VirtualBox

Changeset 45805 in vbox for trunk/src/VBox/Main/glue


Ignore:
Timestamp:
Apr 29, 2013 12:30:50 PM (12 years ago)
Author:
vboxsync
Message:

Main: Removed IGuestErrorInfo, added new attribute resultDetail to IVirtualBoxErrorInfo for (optionally) providing more details on the error happened.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/ErrorInfo.cpp

    r44970 r45805  
    5050
    5151    mResultCode = x.mResultCode;
     52    mResultDetail = x.mResultDetail;
    5253    mInterfaceID = x.mInterfaceID;
    5354    mComponent = x.mComponent;
     
    7879
    7980    mResultCode = S_OK;
     81    mResultDetail = 0;
    8082    mInterfaceID.clear();
    8183    mComponent.setNull();
     
    225227    bool gotSomething = false;
    226228    bool gotAll = true;
    227     LONG lrc;
     229    LONG lrc, lrd;
    228230
    229231    rc = info->COMGETTER(ResultCode)(&lrc); mResultCode = lrc;
     232    gotSomething |= SUCCEEDED(rc);
     233    gotAll &= SUCCEEDED(rc);
     234
     235    rc = info->COMGETTER(ResultDetail)(&lrd); mResultDetail = lrd;
    230236    gotSomething |= SUCCEEDED(rc);
    231237    gotAll &= SUCCEEDED(rc);
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