VirtualBox

Changeset 35517 in vbox


Ignore:
Timestamp:
Jan 13, 2011 10:47:12 AM (14 years ago)
Author:
vboxsync
Message:

Frontends/VBoxManage+glue/ErrorInfo: revert change which broke error reporting (4.0.0 regression), clean up on the way

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/ErrorInfo.h

    r32718 r35517  
    123123        init(pObj, aIID);
    124124    }
     125
     126    /** Specialization for the IVirtualBoxErrorInfo smart pointer */
     127    ErrorInfo (const ComPtr <IVirtualBoxErrorInfo> &aPtr)
     128        : mIsBasicAvailable (false), mIsFullAvailable (false)
     129        , mResultCode (S_OK)
     130        { init (aPtr); }
     131
     132    /**
     133     *  Constructs a new ErrorInfo instance from the IVirtualBoxErrorInfo
     134     *  interface pointer. If this pointer is not NULL, both #isFullAvailable()
     135     *  and #isBasicAvailable() will return |true|.
     136     *
     137     *  @param aInfo    pointer to the IVirtualBoxErrorInfo interface that
     138     *                  holds error info to be fetched by this instance
     139     */
     140    ErrorInfo (IVirtualBoxErrorInfo *aInfo)
     141        : mIsBasicAvailable (false), mIsFullAvailable (false)
     142        , mResultCode (S_OK)
     143        { init (aInfo); }
    125144
    126145    ErrorInfo(const ErrorInfo &x)
  • trunk/src/VBox/Frontends/VBoxHeadless/testcase/tstHeadless.cpp

    r32718 r35517  
    137137            if (FAILED (resultCode))
    138138            {
    139                 ComPtr<IVirtualBoxErrorInfo> errorInfo;
    140                 CHECK_ERROR_BREAK(progress,
    141                                   COMGETTER(ErrorInfo) (errorInfo.asOutParam()));
    142                 ErrorInfo info(errorInfo, COM_IIDOF(IVirtualBoxErrorInfo));
     139                ProgressErrorInfo info(progress);
    143140                com::GluePrintErrorInfo(info);
    144141            }
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r35146 r35517  
    170170                rc = machine->COMGETTER(AccessError)(accessError.asOutParam());
    171171                RTPrintf("Access error details:\n");
    172                 ErrorInfo ei(accessError, COM_IIDOF(IVirtualBoxErrorInfo));
     172                ErrorInfo ei(accessError);
    173173                GluePrintErrorInfo(ei);
    174174                RTPrintf("\n");
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp

    r35273 r35517  
    372372        if (FAILED(iRc))
    373373        {
    374             ComPtr<IVirtualBoxErrorInfo> errorInfo;
    375             CHECK_ERROR_RET(progress, COMGETTER(ErrorInfo)(errorInfo.asOutParam()), 1);
    376             ErrorInfo info(errorInfo, COM_IIDOF(IVirtualBoxErrorInfo));
     374            ProgressErrorInfo info(progress);
    377375            com::GluePrintErrorInfo(info);
    378376        }
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