VirtualBox

Changeset 94921 in vbox


Ignore:
Timestamp:
May 8, 2022 7:56:00 PM (3 years ago)
Author:
vboxsync
Message:

Main/src-client/DisplaySourceBitmapImpl.cpp: Adjust to the new rules wrt. to rc -> hrc,vrc usage, ​bugref:10223

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/DisplaySourceBitmapImpl.cpp

    r93115 r94921  
    6161    m.bitmapFormat = BitmapFormat_Opaque;
    6262
    63     int rc = initSourceBitmap(uScreenId, pFBInfo);
    64 
    65     if (RT_FAILURE(rc))
     63    int vrc = initSourceBitmap(uScreenId, pFBInfo);
     64    if (RT_FAILURE(vrc))
    6665        return E_FAIL;
    6766
     
    8988HRESULT DisplaySourceBitmap::getScreenId(ULONG *aScreenId)
    9089{
    91     HRESULT hr = S_OK;
     90    HRESULT hrc = S_OK;
    9291    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    9392
    9493    *aScreenId = m.uScreenId;
    95     return hr;
     94    return hrc;
    9695}
    9796
     
    103102                                             BitmapFormat_T *aBitmapFormat)
    104103{
    105     HRESULT hr = S_OK;
     104    HRESULT hrc = S_OK;
    106105    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    107106
     
    113112    *aBitmapFormat  = m.bitmapFormat;
    114113
    115     return hr;
     114    return hrc;
    116115}
    117116
     
    120119{
    121120    RT_NOREF(aScreenId);
    122     int rc = VINF_SUCCESS;
     121    int vrc = VINF_SUCCESS;
    123122
    124123    if (pFBInfo->w == 0 || pFBInfo->h == 0)
     
    160159        if (m.pu8Allocated == NULL)
    161160        {
    162             rc = VERR_NO_MEMORY;
     161            vrc = VERR_NO_MEMORY;
    163162        }
    164163        else
     
    168167    }
    169168
    170     if (RT_SUCCESS(rc))
     169    if (RT_SUCCESS(vrc))
    171170    {
    172171        m.pu8Address = pAddress;
     
    182181    }
    183182
    184     return rc;
     183    return vrc;
    185184}
    186185
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