VirtualBox

Changeset 94936 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
May 9, 2022 8:53:25 AM (3 years ago)
Author:
vboxsync
Message:

Main/src-client/HGCMObjects.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/HGCMObjects.cpp

    r93115 r94936  
    5757    g_pTree = NULL;
    5858
    59     int rc = RTCritSectInit(&g_critsect);
    60 
    61     LogFlow(("MAIN::hgcmObjInit: rc = %Rrc\n", rc));
    62 
    63     return rc;
     59    int vrc = RTCritSectInit(&g_critsect);
     60
     61    LogFlow(("MAIN::hgcmObjInit: vrc = %Rrc\n", vrc));
     62
     63    return vrc;
    6464}
    6565
     
    7676    LogFlow(("MAIN::hgcmObjGenerateHandle: pObject %p\n", pObject));
    7777
    78     int rc = hgcmObjEnter();
    79 
    80     if (RT_SUCCESS(rc))
     78    int vrc = hgcmObjEnter();
     79
     80    if (RT_SUCCESS(vrc))
    8181    {
    8282        ObjectAVLCore *pCore = &pObject->m_core;
     
    158158    }
    159159
    160     LogFlow(("MAIN::hgcmObjGenerateHandle: handle = 0x%08X, rc = %Rrc, return void\n", handle, rc));
     160    LogFlow(("MAIN::hgcmObjGenerateHandle: handle = 0x%08X, vrc = %Rrc, return void\n", handle, vrc));
    161161
    162162    return handle;
     
    175175void hgcmObjDeleteHandle(uint32_t handle)
    176176{
    177     int rc = VINF_SUCCESS;
     177    int vrc = VINF_SUCCESS;
    178178
    179179    LogFlow(("MAIN::hgcmObjDeleteHandle: handle 0x%08X\n", handle));
     
    181181    if (handle)
    182182    {
    183         rc = hgcmObjEnter();
    184 
    185         if (RT_SUCCESS(rc))
     183        vrc = hgcmObjEnter();
     184
     185        if (RT_SUCCESS(vrc))
    186186        {
    187187            ObjectAVLCore *pCore = (ObjectAVLCore *)RTAvlU32Remove(&g_pTree, handle);
     
    198198        else
    199199        {
    200             AssertReleaseMsgFailed(("Failed to acquire object pool semaphore, rc = %Rrc", rc));
    201         }
    202     }
    203 
    204     LogFlow(("MAIN::hgcmObjDeleteHandle: rc = %Rrc, return void\n", rc));
     200            AssertReleaseMsgFailed(("Failed to acquire object pool semaphore, vrc = %Rrc", vrc));
     201        }
     202    }
     203
     204    LogFlow(("MAIN::hgcmObjDeleteHandle: vrc = %Rrc, return void\n", vrc));
    205205}
    206206
     
    216216    }
    217217
    218     int rc = hgcmObjEnter();
    219 
    220     if (RT_SUCCESS(rc))
     218    int vrc = hgcmObjEnter();
     219
     220    if (RT_SUCCESS(vrc))
    221221    {
    222222        ObjectAVLCore *pCore = (ObjectAVLCore *)RTAvlU32Get(&g_pTree, handle);
     
    238238    else
    239239    {
    240         AssertReleaseMsgFailed(("Failed to acquire object pool semaphore, rc = %Rrc", rc));
     240        AssertReleaseMsgFailed(("Failed to acquire object pool semaphore, vrc = %Rrc", vrc));
    241241    }
    242242
     
    266266    Assert(g_u32ClientHandleCount <= u32ClientHandleCount);
    267267
    268     int rc = hgcmObjEnter();
    269 
    270     if (RT_SUCCESS(rc))
     268    int vrc = hgcmObjEnter();
     269
     270    if (RT_SUCCESS(vrc))
    271271    {
    272272        if (g_u32ClientHandleCount <= u32ClientHandleCount)
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