Changeset 94936 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- May 9, 2022 8:53:25 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/HGCMObjects.cpp
r93115 r94936 57 57 g_pTree = NULL; 58 58 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; 64 64 } 65 65 … … 76 76 LogFlow(("MAIN::hgcmObjGenerateHandle: pObject %p\n", pObject)); 77 77 78 int rc = hgcmObjEnter();79 80 if (RT_SUCCESS( rc))78 int vrc = hgcmObjEnter(); 79 80 if (RT_SUCCESS(vrc)) 81 81 { 82 82 ObjectAVLCore *pCore = &pObject->m_core; … … 158 158 } 159 159 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)); 161 161 162 162 return handle; … … 175 175 void hgcmObjDeleteHandle(uint32_t handle) 176 176 { 177 int rc = VINF_SUCCESS;177 int vrc = VINF_SUCCESS; 178 178 179 179 LogFlow(("MAIN::hgcmObjDeleteHandle: handle 0x%08X\n", handle)); … … 181 181 if (handle) 182 182 { 183 rc = hgcmObjEnter();184 185 if (RT_SUCCESS( rc))183 vrc = hgcmObjEnter(); 184 185 if (RT_SUCCESS(vrc)) 186 186 { 187 187 ObjectAVLCore *pCore = (ObjectAVLCore *)RTAvlU32Remove(&g_pTree, handle); … … 198 198 else 199 199 { 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)); 205 205 } 206 206 … … 216 216 } 217 217 218 int rc = hgcmObjEnter();219 220 if (RT_SUCCESS( rc))218 int vrc = hgcmObjEnter(); 219 220 if (RT_SUCCESS(vrc)) 221 221 { 222 222 ObjectAVLCore *pCore = (ObjectAVLCore *)RTAvlU32Get(&g_pTree, handle); … … 238 238 else 239 239 { 240 AssertReleaseMsgFailed(("Failed to acquire object pool semaphore, rc = %Rrc",rc));240 AssertReleaseMsgFailed(("Failed to acquire object pool semaphore, vrc = %Rrc", vrc)); 241 241 } 242 242 … … 266 266 Assert(g_u32ClientHandleCount <= u32ClientHandleCount); 267 267 268 int rc = hgcmObjEnter();269 270 if (RT_SUCCESS( rc))268 int vrc = hgcmObjEnter(); 269 270 if (RT_SUCCESS(vrc)) 271 271 { 272 272 if (g_u32ClientHandleCount <= u32ClientHandleCount)
Note:
See TracChangeset
for help on using the changeset viewer.