VirtualBox

Changeset 20220 in vbox for trunk


Ignore:
Timestamp:
Jun 3, 2009 8:40:29 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
48062
Message:

Main: back out the IProgess::GetResultCode() parameter change

Location:
trunk/src/VBox
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r20212 r20220  
    162162
    163163    /* complete the line. */
    164     ULONG iRc;
     164    LONG iRc;
    165165    if (SUCCEEDED(progress->COMGETTER(ResultCode)(&iRc)))
    166166    {
     
    531531        ASSERT(completed);
    532532
    533         ULONG iRc;
     533        LONG iRc;
    534534        CHECK_ERROR_RET(progress, COMGETTER(ResultCode)(&iRc), rc);
    535535        if (FAILED(iRc))
     
    611611            showProgress(progress);
    612612
    613             ULONG iRc;
     613            LONG iRc;
    614614            progress->COMGETTER(ResultCode)(&iRc);
    615615            if (FAILED(iRc))
  • TabularUnified trunk/src/VBox/Main/ApplianceImpl.cpp

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

    r20213 r20220  
    69186918        if (SUCCEEDED (rc))
    69196919        {
    6920             ULONG iRc = S_OK;
     6920            LONG iRc = S_OK;
    69216921            rc = task->mServerProgress->COMGETTER(ResultCode) (&iRc);
    69226922            if (SUCCEEDED (rc))
  • TabularUnified trunk/src/VBox/Main/HostPower.cpp

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

    r20216 r20220  
    372372}
    373373
    374 STDMETHODIMP ProgressBase::COMGETTER(ResultCode) (ULONG *aResultCode)
     374STDMETHODIMP ProgressBase::COMGETTER(ResultCode) (LONG *aResultCode)
    375375{
    376376    CheckComArgOutPointerValid(aResultCode);
     
    492492    AssertReturn (aProgress != NULL, E_INVALIDARG);
    493493
    494     ULONG resultCode;
    495     HRESULT rc = aProgress->COMGETTER(ResultCode) (&resultCode);
     494    LONG iRc;
     495    HRESULT rc = aProgress->COMGETTER(ResultCode) (&iRc);
    496496    AssertComRCReturnRC (rc);
     497    HRESULT resultCode = iRc;
    497498
    498499    if (resultCode == S_OK)
     
    13151316}
    13161317
    1317 STDMETHODIMP CombinedProgress::COMGETTER(ResultCode) (ULONG *aResultCode)
     1318STDMETHODIMP CombinedProgress::COMGETTER(ResultCode) (LONG *aResultCode)
    13181319{
    13191320    CheckComArgOutPointerValid(aResultCode);
     
    15921593                return rc;
    15931594
    1594             ULONG iRc;
     1595            LONG iRc;
    15951596            rc = progress->COMGETTER(ResultCode) (&iRc);
    15961597            if (FAILED (rc))
    15971598                return rc;
    1598 
    15991599            mResultCode = iRc;
     1600
    16001601            if (FAILED (mResultCode))
    16011602            {
  • TabularUnified trunk/src/VBox/Main/cbinding/tstXPCOMCCall.c

    r20218 r20220  
    607607    {
    608608        PRBool completed;
    609         PRUint32 resultCode;
     609        PRInt32 resultCode;
    610610
    611611        printf("Waiting for the remote session to open...\n");
  • TabularUnified trunk/src/VBox/Main/cbinding/tstXPCOMCGlue.c

    r20213 r20220  
    238238    {
    239239        PRBool completed;
    240         PRUint32 resultCode;
     240        PRInt32 resultCode;
    241241
    242242        printf("Waiting for the remote session to open...\n");
  • TabularUnified trunk/src/VBox/Main/idl/VirtualBox.xidl

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

    r20212 r20220  
    7676    STDMETHOD(COMGETTER(Completed)) (BOOL *aCompleted);
    7777    STDMETHOD(COMGETTER(Canceled)) (BOOL *aCanceled);
    78     STDMETHOD(COMGETTER(ResultCode)) (ULONG *aResultCode);
     78    STDMETHOD(COMGETTER(ResultCode)) (LONG *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)) (ULONG *aResultCode);
     398    STDMETHOD(COMGETTER(ResultCode)) (LONG *aResultCode);
    399399    STDMETHOD(COMGETTER(ErrorInfo)) (IVirtualBoxErrorInfo **aErrorInfo);
    400400    STDMETHOD(COMGETTER(Operation)) (ULONG *aCount);
  • TabularUnified trunk/src/VBox/Main/testcase/tstVBoxAPILinux.cpp

    r20212 r20220  
    326326             */
    327327            rc = progress->WaitForCompletion(-1);
    328             PRUint32 resultCode;
     328            PRInt32 resultCode;
    329329            progress->GetResultCode(&resultCode);
    330330            if (NS_FAILED(rc) || NS_FAILED(resultCode))
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette