VirtualBox

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


Ignore:
Timestamp:
Jun 4, 2009 11:27:27 AM (16 years ago)
Author:
vboxsync
Message:

Main: completed scriptable changes
Make VBox buildable on SMB share exported by Win box.

Location:
trunk/src/VBox/Main/glue
Files:
3 edited

Legend:

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

    r16555 r20267  
    180180    bool gotSomething = false;
    181181    bool gotAll = true;
    182 
    183     rc = info->COMGETTER(ResultCode) (&mResultCode);
     182    LONG lrc;
     183
     184    rc = info->COMGETTER(ResultCode) (&lrc); mResultCode = lrc;   
    184185    gotSomething |= SUCCEEDED (rc);
    185186    gotAll &= SUCCEEDED (rc);
  • trunk/src/VBox/Main/glue/SupportErrorInfo.cpp

    r13580 r20267  
    253253
    254254                /* we want to return the head's result code */
    255                 rc = info->COMGETTER(ResultCode) (&aResultCode);
     255                PRInt32 lrc;
     256                rc = info->COMGETTER(ResultCode) (&lrc); aResultCode = lrc;
    256257                CheckComRCBreakRC (rc);
    257258            }
  • trunk/src/VBox/Main/glue/VirtualBoxErrorInfo.cpp

    r15051 r20267  
    6060////////////////////////////////////////////////////////////////////////////////
    6161
    62 STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(ResultCode) (HRESULT *aResultCode)
     62STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(ResultCode) (LONG *aResultCode)
    6363{
    6464    if (!aResultCode)
     
    202202NS_IMETHODIMP VirtualBoxErrorInfo::GetResult (nsresult *aResult)
    203203{
    204     return COMGETTER(ResultCode) (aResult);
     204    if (!aResult)
     205      return NS_ERROR_INVALID_POINTER;
     206
     207    PRInt32 lrc;
     208    nsresult rc = COMGETTER(ResultCode) (&lrc);
     209    if (SUCCEEDED(rc))
     210      *aResult = lrc;
     211    return rc;
    205212}
    206213
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