Changeset 98296 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Jan 25, 2023 1:28:38 AM (23 months ago)
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ConsoleVRDPServer.h
r98103 r98296 312 312 uint32_t cbData); 313 313 static DECLCALLBACK(int) VRDESCardCbResponse(void *pvContext, 314 int rcRequest,314 int vrcRequest, 315 315 void *pvUser, 316 316 uint32_t u32Function, … … 349 349 uint32_t cbData); 350 350 static DECLCALLBACK(void) VRDECallbackVideoInDeviceDesc(void *pvCallback, 351 int rcRequest,351 int vrcRequest, 352 352 void *pDeviceCtx, 353 353 void *pvUser, … … 355 355 uint32_t cbDevice); 356 356 static DECLCALLBACK(void) VRDECallbackVideoInControl(void *pvCallback, 357 int rcRequest,357 int vrcRequest, 358 358 void *pDeviceCtx, 359 359 void *pvUser, … … 361 361 uint32_t cbControl); 362 362 static DECLCALLBACK(void) VRDECallbackVideoInFrame(void *pvCallback, 363 int rcRequest,363 int vrcRequest, 364 364 void *pDeviceCtx, 365 365 const VRDEVIDEOINPAYLOADHDR *pFrame, … … 371 371 VRDEINPUTCALLBACKS m_interfaceCallbacksInput; 372 372 static DECLCALLBACK(void) VRDECallbackInputSetup(void *pvCallback, 373 int rcRequest,373 int vrcRequest, 374 374 uint32_t u32Method, 375 375 const void *pvResult, -
trunk/src/VBox/Main/include/vector.h
r98103 r98296 206 206 void *pvElement) 207 207 { 208 int rc2;209 208 AssertReturn(pvec->muTypeHash == uTypeHash, VERR_INVALID_PARAMETER); 210 if ( pvec->mcElements == pvec->mcCapacity 211 && RT_FAILURE((rc2 = VEC_EXPAND(pvec)))) 212 return rc2; 209 if (pvec->mcElements == pvec->mcCapacity) 210 { 211 int vrc2 = VEC_EXPAND(pvec); 212 if (RT_FAILURE(vrc2)) 213 return vrc2; 214 } 213 215 memcpy(VEC_GET_ELEMENT_OBJ(pvec->mpvaElements, pvec->mcbElement, 214 216 pvec->mcElements), pvElement, pvec->mcbElement); … … 221 223 void *pv) 222 224 { 223 int rc2;224 225 AssertReturn(pvec->muTypeHash == uTypeHash, VERR_INVALID_PARAMETER); 225 if ( pvec->mcElements == pvec->mcCapacity 226 && RT_FAILURE((rc2 = VEC_EXPAND(pvec)))) 227 return rc2; 226 if (pvec->mcElements == pvec->mcCapacity) 227 { 228 int vrc2 = VEC_EXPAND(pvec); 229 if (RT_FAILURE(vrc2)) 230 return vrc2; 231 } 228 232 VEC_GET_ELEMENT_PTR(pvec->mpvaElements, pvec->mcElements) = pv; 229 233 ++pvec->mcElements;
Note:
See TracChangeset
for help on using the changeset viewer.