Changeset 90792 in vbox for trunk/include
- Timestamp:
- Aug 23, 2021 10:29:03 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 146427
- Location:
- trunk/include
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/HostServices/GuestPropertySvc.h
r82968 r90792 125 125 int rc = VINF_SUCCESS; 126 126 uint32_t fFlags = 0; 127 AssertLogRelReturn( VALID_PTR(pfFlags), VERR_INVALID_POINTER);127 AssertLogRelReturn(RT_VALID_PTR(pfFlags), VERR_INVALID_POINTER); 128 128 129 129 if (pcszFlags) … … 182 182 int rc = VINF_SUCCESS; 183 183 184 AssertLogRelReturn( VALID_PTR(pszFlags), VERR_INVALID_POINTER);184 AssertLogRelReturn(RT_VALID_PTR(pszFlags), VERR_INVALID_POINTER); 185 185 if ((fFlags & ~GUEST_PROP_F_ALLFLAGS) == GUEST_PROP_F_NILFLAG) 186 186 { -
trunk/include/VBox/HostServices/Service.h
r90237 r90792 161 161 int rc = VINF_SUCCESS; 162 162 163 if (! VALID_PTR(pTable))163 if (!RT_VALID_PTR(pTable)) 164 164 rc = VERR_INVALID_PARAMETER; 165 165 else … … 242 242 static DECLCALLBACK(int) svcUnload(void *pvService) 243 243 { 244 AssertLogRelReturn( VALID_PTR(pvService), VERR_INVALID_PARAMETER);244 AssertLogRelReturn(RT_VALID_PTR(pvService), VERR_INVALID_PARAMETER); 245 245 SELF *pSelf = reinterpret_cast<SELF *>(pvService); 246 246 int rc = pSelf->uninit(); … … 262 262 { 263 263 RT_NOREF(fRequestor, fRestoring); 264 AssertLogRelReturn( VALID_PTR(pvService), VERR_INVALID_PARAMETER);264 AssertLogRelReturn(RT_VALID_PTR(pvService), VERR_INVALID_PARAMETER); 265 265 LogFlowFunc(("pvService=%p, idClient=%u, pvClient=%p\n", pvService, idClient, pvClient)); 266 266 SELF *pSelf = reinterpret_cast<SELF *>(pvService); … … 278 278 void *pvClient) 279 279 { 280 AssertLogRelReturn( VALID_PTR(pvService), VERR_INVALID_PARAMETER);280 AssertLogRelReturn(RT_VALID_PTR(pvService), VERR_INVALID_PARAMETER); 281 281 LogFlowFunc(("pvService=%p, idClient=%u, pvClient=%p\n", pvService, idClient, pvClient)); 282 282 SELF *pSelf = reinterpret_cast<SELF *>(pvService); … … 299 299 uint64_t tsArrival) 300 300 { 301 AssertLogRelReturnVoid( VALID_PTR(pvService));301 AssertLogRelReturnVoid(RT_VALID_PTR(pvService)); 302 302 LogFlowFunc(("pvService=%p, callHandle=%p, idClient=%u, pvClient=%p, u32Function=%u, cParms=%u, paParms=%p\n", 303 303 pvService, callHandle, idClient, pvClient, u32Function, cParms, paParms)); … … 317 317 VBOXHGCMSVCPARM paParms[]) 318 318 { 319 AssertLogRelReturn( VALID_PTR(pvService), VERR_INVALID_PARAMETER);319 AssertLogRelReturn(RT_VALID_PTR(pvService), VERR_INVALID_PARAMETER); 320 320 LogFlowFunc(("pvService=%p, u32Function=%u, cParms=%u, paParms=%p\n", pvService, u32Function, cParms, paParms)); 321 321 SELF *pSelf = reinterpret_cast<SELF *>(pvService); … … 333 333 void *pvExtension) 334 334 { 335 AssertLogRelReturn( VALID_PTR(pvService), VERR_INVALID_PARAMETER);335 AssertLogRelReturn(RT_VALID_PTR(pvService), VERR_INVALID_PARAMETER); 336 336 LogFlowFunc(("pvService=%p, pfnExtension=%p, pvExtention=%p\n", pvService, pfnExtension, pvExtension)); 337 337 SELF *pSelf = reinterpret_cast<SELF *>(pvService); -
trunk/include/VBox/hgcmsvc.h
r90238 r90792 314 314 AssertPtrReturn(pcb, VERR_INVALID_POINTER); 315 315 if ( pParm->type == VBOX_HGCM_SVC_PARM_PTR 316 && VALID_PTR(pParm->u.pointer.addr)316 && RT_VALID_PTR(pParm->u.pointer.addr) 317 317 && pParm->u.pointer.size > 0) 318 318 { … … 333 333 AssertPtrReturn(pcb, VERR_INVALID_POINTER); 334 334 if ( pParm->type == VBOX_HGCM_SVC_PARM_PTR 335 && VALID_PTR(pParm->u.pointer.addr)335 && RT_VALID_PTR(pParm->u.pointer.addr) 336 336 && pParm->u.pointer.size > 0) 337 337 { … … 351 351 AssertPtrReturn(pcb, VERR_INVALID_POINTER); 352 352 if ( pParm->type == VBOX_HGCM_SVC_PARM_PTR 353 && VALID_PTR(pParm->u.pointer.addr)353 && RT_VALID_PTR(pParm->u.pointer.addr) 354 354 && pParm->u.pointer.size > 0) 355 355 { … … 374 374 AssertPtrReturn(pcb, VERR_INVALID_POINTER); 375 375 if ( pParm->type == VBOX_HGCM_SVC_PARM_PTR 376 && VALID_PTR(pParm->u.pointer.addr)376 && RT_VALID_PTR(pParm->u.pointer.addr) 377 377 && pParm->u.pointer.size > 0) 378 378 { … … 397 397 AssertPtrReturn(pcb, VERR_INVALID_POINTER); 398 398 if ( pParm->type == VBOX_HGCM_SVC_PARM_PTR 399 && VALID_PTR(pParm->u.pointer.addr)399 && RT_VALID_PTR(pParm->u.pointer.addr) 400 400 && pParm->u.pointer.size > 0) 401 401 { -
trunk/include/VBox/vd-ifs.h
r85901 r90792 160 160 ("enmInterface=%u", enmInterface), VERR_INVALID_PARAMETER); 161 161 162 AssertMsgReturn(VALID_PTR(ppVDIfs), 163 ("pInterfaceList=%#p", ppVDIfs), 164 VERR_INVALID_PARAMETER); 162 AssertPtrReturn(ppVDIfs, VERR_INVALID_PARAMETER); 165 163 166 164 /* Fill out interface descriptor. */ … … 190 188 191 189 /* Argument checks. */ 192 AssertMsgReturn(VALID_PTR(pInterface), 193 ("pInterface=%#p", pInterface), 194 VERR_INVALID_PARAMETER); 195 196 AssertMsgReturn(VALID_PTR(ppVDIfs), 197 ("pInterfaceList=%#p", ppVDIfs), 198 VERR_INVALID_PARAMETER); 190 AssertPtrReturn(pInterface, VERR_INVALID_PARAMETER); 191 AssertPtrReturn(ppVDIfs, VERR_INVALID_PARAMETER); 199 192 200 193 if (*ppVDIfs) -
trunk/include/iprt/assert.h
r82968 r90792 2572 2572 * @param pv The pointer. 2573 2573 */ 2574 #define AssertPtr(pv) AssertMsg( VALID_PTR(pv), ("%p\n", (pv)))2574 #define AssertPtr(pv) AssertMsg(RT_VALID_PTR(pv), ("%p\n", (pv))) 2575 2575 2576 2576 /** @def AssertPtrReturn … … 2580 2580 * @param rcRet What is to be presented to return. 2581 2581 */ 2582 #define AssertPtrReturn(pv, rcRet) AssertMsgReturn( VALID_PTR(pv), ("%p\n", (pv)), rcRet)2582 #define AssertPtrReturn(pv, rcRet) AssertMsgReturn(RT_VALID_PTR(pv), ("%p\n", (pv)), rcRet) 2583 2583 2584 2584 /** @def AssertPtrReturnVoid … … 2587 2587 * @param pv The pointer. 2588 2588 */ 2589 #define AssertPtrReturnVoid(pv) AssertMsgReturnVoid( VALID_PTR(pv), ("%p\n", (pv)))2589 #define AssertPtrReturnVoid(pv) AssertMsgReturnVoid(RT_VALID_PTR(pv), ("%p\n", (pv))) 2590 2590 2591 2591 /** @def AssertPtrBreak … … 2594 2594 * @param pv The pointer. 2595 2595 */ 2596 #define AssertPtrBreak(pv) AssertMsgBreak( VALID_PTR(pv), ("%p\n", (pv)))2596 #define AssertPtrBreak(pv) AssertMsgBreak(RT_VALID_PTR(pv), ("%p\n", (pv))) 2597 2597 2598 2598 /** @def AssertPtrBreakStmt … … 2602 2602 * @param stmt Statement to execute before break in case of a failed assertion. 2603 2603 */ 2604 #define AssertPtrBreakStmt(pv, stmt) AssertMsgBreakStmt( VALID_PTR(pv), ("%p\n", (pv)), stmt)2604 #define AssertPtrBreakStmt(pv, stmt) AssertMsgBreakStmt(RT_VALID_PTR(pv), ("%p\n", (pv)), stmt) 2605 2605 2606 2606 /** @def AssertPtrNull … … 2609 2609 * @param pv The pointer. 2610 2610 */ 2611 #define AssertPtrNull(pv) AssertMsg( VALID_PTR(pv) || (pv) == NULL, ("%p\n", (pv)))2611 #define AssertPtrNull(pv) AssertMsg(RT_VALID_PTR(pv) || (pv) == NULL, ("%p\n", (pv))) 2612 2612 2613 2613 /** @def AssertPtrNullReturn … … 2617 2617 * @param rcRet What is to be presented to return. 2618 2618 */ 2619 #define AssertPtrNullReturn(pv, rcRet) AssertMsgReturn( VALID_PTR(pv) || (pv) == NULL, ("%p\n", (pv)), rcRet)2619 #define AssertPtrNullReturn(pv, rcRet) AssertMsgReturn(RT_VALID_PTR(pv) || (pv) == NULL, ("%p\n", (pv)), rcRet) 2620 2620 2621 2621 /** @def AssertPtrNullReturnVoid … … 2624 2624 * @param pv The pointer. 2625 2625 */ 2626 #define AssertPtrNullReturnVoid(pv) AssertMsgReturnVoid( VALID_PTR(pv) || (pv) == NULL, ("%p\n", (pv)))2626 #define AssertPtrNullReturnVoid(pv) AssertMsgReturnVoid(RT_VALID_PTR(pv) || (pv) == NULL, ("%p\n", (pv))) 2627 2627 2628 2628 /** @def AssertPtrNullBreak … … 2631 2631 * @param pv The pointer. 2632 2632 */ 2633 #define AssertPtrNullBreak(pv) AssertMsgBreak( VALID_PTR(pv) || (pv) == NULL, ("%p\n", (pv)))2633 #define AssertPtrNullBreak(pv) AssertMsgBreak(RT_VALID_PTR(pv) || (pv) == NULL, ("%p\n", (pv))) 2634 2634 2635 2635 /** @def AssertPtrNullBreakStmt … … 2639 2639 * @param stmt Statement to execute before break in case of a failed assertion. 2640 2640 */ 2641 #define AssertPtrNullBreakStmt(pv, stmt) AssertMsgBreakStmt( VALID_PTR(pv) || (pv) == NULL, ("%p\n", (pv)), stmt)2641 #define AssertPtrNullBreakStmt(pv, stmt) AssertMsgBreakStmt(RT_VALID_PTR(pv) || (pv) == NULL, ("%p\n", (pv)), stmt) 2642 2642 2643 2643 /** @def AssertGCPhys32 -
trunk/include/iprt/cdefs.h
r90647 r90792 4394 4394 #define RT_VALID_ALIGNED_PTR(ptr, align) \ 4395 4395 ( !((uintptr_t)(ptr) & (uintptr_t)((align) - 1)) \ 4396 && VALID_PTR(ptr) )4396 && RT_VALID_PTR(ptr) ) 4397 4397 4398 4398
Note:
See TracChangeset
for help on using the changeset viewer.