VirtualBox

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


Ignore:
Timestamp:
Jun 3, 2009 8:09:42 AM (16 years ago)
Author:
vboxsync
Message:

Main: changed the parameter of IProgress::GetResultCode() from long to unsigned long for a better match with nsresult

Location:
trunk/src/VBox/Main
Files:
6 edited

Legend:

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

    r20211 r20212  
    40004000    }
    40014001    // report result of asynchronous operation
    4002     LONG iRc;
     4002    ULONG iRc;
    40034003    rc = pProgressAsync->COMGETTER(ResultCode)(&iRc);
    40044004    if (FAILED(rc)) throw rc;
  • trunk/src/VBox/Main/HostPower.cpp

    r19242 r20212  
    136136
    137137                /* Wait until the operation has been completed. */
    138                 LONG iRc;
     138                ULONG iRc;
    139139                rc = progress->WaitForCompletion(-1);
    140140                if (SUCCEEDED (rc))
  • trunk/src/VBox/Main/ProgressImpl.cpp

    r19242 r20212  
    372372}
    373373
    374 STDMETHODIMP ProgressBase::COMGETTER(ResultCode) (LONG *aResultCode)
     374STDMETHODIMP ProgressBase::COMGETTER(ResultCode) (ULONG *aResultCode)
    375375{
    376376    CheckComArgOutPointerValid(aResultCode);
     
    492492    AssertReturn (aProgress != NULL, E_INVALIDARG);
    493493
    494     LONG iRc;
    495     HRESULT rc = aProgress->COMGETTER(ResultCode) (&iRc);
     494    ULONG resultCode;
     495    HRESULT rc = aProgress->COMGETTER(ResultCode) (&resultCode);
    496496    AssertComRCReturnRC (rc);
    497     HRESULT resultCode = iRc;
    498497
    499498    if (resultCode == S_OK)
     
    13161315}
    13171316
    1318 STDMETHODIMP CombinedProgress::COMGETTER(ResultCode) (LONG *aResultCode)
     1317STDMETHODIMP CombinedProgress::COMGETTER(ResultCode) (ULONG *aResultCode)
    13191318{
    13201319    CheckComArgOutPointerValid(aResultCode);
     
    15931592                return rc;
    15941593
    1595             LONG iRc;
    1596             rc = progress->COMGETTER(ResultCode) (&iRc);
     1594            rc = progress->COMGETTER(ResultCode) (&mResultCode);
    15971595            if (FAILED (rc))
    15981596                return rc;
    1599             mResultCode = iRc;
    16001597
    16011598            if (FAILED (mResultCode))
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r20081 r20212  
    80318031    </attribute>
    80328032
    8033     <attribute name="resultCode" type="long" readonly="yes">
     8033    <attribute name="resultCode" type="unsigned long" readonly="yes">
    80348034      <desc>
    80358035        Result code of the progress task.
  • trunk/src/VBox/Main/include/ProgressImpl.h

    r19242 r20212  
    7676    STDMETHOD(COMGETTER(Completed)) (BOOL *aCompleted);
    7777    STDMETHOD(COMGETTER(Canceled)) (BOOL *aCanceled);
    78     STDMETHOD(COMGETTER(ResultCode)) (LONG *aResultCode);
     78    STDMETHOD(COMGETTER(ResultCode)) (ULONG *aResultCode);
    7979    STDMETHOD(COMGETTER(ErrorInfo)) (IVirtualBoxErrorInfo **aErrorInfo);
    8080    STDMETHOD(COMGETTER(OperationCount)) (ULONG *aOperationCount);
     
    396396    STDMETHOD(COMGETTER(Completed)) (BOOL *aCompleted);
    397397    STDMETHOD(COMGETTER(Canceled)) (BOOL *aCanceled);
    398     STDMETHOD(COMGETTER(ResultCode)) (LONG *aResultCode);
     398    STDMETHOD(COMGETTER(ResultCode)) (ULONG *aResultCode);
    399399    STDMETHOD(COMGETTER(ErrorInfo)) (IVirtualBoxErrorInfo **aErrorInfo);
    400400    STDMETHOD(COMGETTER(Operation)) (ULONG *aCount);
  • trunk/src/VBox/Main/testcase/tstVBoxAPILinux.cpp

    r19242 r20212  
    326326             */
    327327            rc = progress->WaitForCompletion(-1);
    328             PRInt32 resultCode;
     328            PRUint32 resultCode;
    329329            progress->GetResultCode(&resultCode);
    330330            if (NS_FAILED(rc) || NS_FAILED(resultCode))
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