VirtualBox

Changeset 90780 in vbox


Ignore:
Timestamp:
Aug 23, 2021 9:25:17 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
146415
Message:

SUP: VALID_PTR -> RT_VALID_PTR.

Location:
trunk/src/VBox/HostDrivers/Support
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.cpp

    r90489 r90780  
    20272027            REQ_CHECK_SIZES(SUP_IOCTL_SET_VM_FOR_FAST);
    20282028            REQ_CHECK_EXPR_FMT(     !pReq->u.In.pVMR0
    2029                                ||   (   VALID_PTR(pReq->u.In.pVMR0)
     2029                               ||   (   RT_VALID_PTR(pReq->u.In.pVMR0)
    20302030                                     && !((uintptr_t)pReq->u.In.pVMR0 & (PAGE_SIZE - 1))),
    20312031                               ("SUP_IOCTL_SET_VM_FOR_FAST: pVMR0=%p!\n", pReq->u.In.pVMR0));
     
    30443044     */
    30453045    AssertReturn(SUP_IS_SESSION_VALID(pSession), VERR_INVALID_PARAMETER);
    3046     AssertMsgReturn(VALID_PTR(pObj)&& pObj->u32Magic == SUPDRVOBJ_MAGIC,
     3046    AssertMsgReturn(RT_VALID_PTR(pObj) && pObj->u32Magic == SUPDRVOBJ_MAGIC,
    30473047                    ("Invalid pvObj=%p magic=%#x (expected %#x)\n", pvObj, pObj ? pObj->u32Magic : 0, SUPDRVOBJ_MAGIC),
    30483048                    VERR_INVALID_PARAMETER);
     
    31523152     */
    31533153    AssertReturn(SUP_IS_SESSION_VALID(pSession), VERR_INVALID_PARAMETER);
    3154     AssertMsgReturn(VALID_PTR(pObj) && pObj->u32Magic == SUPDRVOBJ_MAGIC,
     3154    AssertMsgReturn(RT_VALID_PTR(pObj) && pObj->u32Magic == SUPDRVOBJ_MAGIC,
    31553155                    ("Invalid pvObj=%p magic=%#x (exepcted %#x)\n", pvObj, pObj ? pObj->u32Magic : 0, SUPDRVOBJ_MAGIC),
    31563156                    VERR_INVALID_PARAMETER);
     
    52235223        return rc;
    52245224    }
    5225     Assert(VALID_PTR(pImage->pvImage) || RT_FAILURE(rc));
     5225    Assert(RT_VALID_PTR(pImage->pvImage) || RT_FAILURE(rc));
    52265226
    52275227    /*
  • trunk/src/VBox/HostDrivers/Support/SUPDrvInternal.h

    r87709 r90780  
    336336 */
    337337#define SUP_IS_SESSION_VALID(pSession)  \
    338     (   VALID_PTR(pSession) \
     338    (   RT_VALID_PTR(pSession) \
    339339     && pSession->u32Cookie == BIRD_INV)
    340340
     
    346346 */
    347347#define SUP_IS_DEVEXT_VALID(pDevExt) \
    348     (   VALID_PTR(pDevExt)\
     348    (   RT_VALID_PTR(pDevExt) \
    349349     && pDevExt->u32Cookie == BIRD)
    350350
  • trunk/src/VBox/HostDrivers/Support/SUPLib.cpp

    r90489 r90780  
    177177     *       initialized at this point.
    178178     */
    179     if (!VALID_PTR(pPreInitData))
     179    if (!RT_VALID_PTR(pPreInitData))
    180180        return VERR_INVALID_POINTER;
    181181    if (g_fPreInited || g_cInits > 0)
  • trunk/src/VBox/HostDrivers/Support/SUPR0IdcClient.c

    r82968 r90780  
    122122         * session and version values actually makes sense.
    123123         */
    124         if (    VALID_PTR(Req.u.Out.pSession)
     124        if (    RT_VALID_PTR(Req.u.Out.pSession)
    125125            &&  Req.u.Out.uSessionVersion >= uMinVersion
    126126            &&  (Req.u.Out.uSessionVersion & UINT32_C(0xffff0000)) == (SUPDRV_IDC_VERSION & UINT32_C(0xffff0000)))
     
    205205{
    206206    PSUPDRVIDCHANDLE pHandle = ASMAtomicUoReadPtrT(&g_pMainHandle, PSUPDRVIDCHANDLE);
    207     if (    VALID_PTR(pHandle)
    208         &&  pHandle->s.pSession == pSession)
     207    if (   RT_VALID_PTR(pHandle)
     208        && pHandle->s.pSession == pSession)
    209209        return pHandle;
    210210    return NULL;
  • trunk/src/VBox/HostDrivers/Support/SUPR3HardenedVerify.cpp

    r83033 r90780  
    10511051        {
    10521052            const char *pszMsg = va_arg(va,  const char *);
    1053             size_t cchMsg = VALID_PTR(pszMsg) ? suplibHardenedStrLen(pszMsg) : 0;
     1053            size_t cchMsg = RT_VALID_PTR(pszMsg) ? suplibHardenedStrLen(pszMsg) : 0;
    10541054            if (cchMsg >= cbErr)
    10551055                cchMsg = cbErr - 1;
  • trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp

    r89018 r90780  
    956956     * Some quick validations.
    957957     */
    958     if (RT_UNLIKELY(!VALID_PTR(pReq)))
     958    if (RT_UNLIKELY(!RT_VALID_PTR(pReq)))
    959959        return VERR_INVALID_POINTER;
    960960
     
    962962    if (pSession)
    963963    {
    964         if (RT_UNLIKELY(!VALID_PTR(pSession)))
     964        if (RT_UNLIKELY(!RT_VALID_PTR(pSession)))
    965965            return VERR_INVALID_PARAMETER;
    966966        if (RT_UNLIKELY(pSession->pDevExt != &g_DevExt))
  • trunk/src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c

    r87700 r90780  
    476476     * Some quick validations.
    477477     */
    478     if (RT_UNLIKELY(!VALID_PTR(pReq)))
     478    if (RT_UNLIKELY(!RT_VALID_PTR(pReq)))
    479479        return VERR_INVALID_POINTER;
    480480
     
    482482    if (pSession)
    483483    {
    484         if (RT_UNLIKELY(!VALID_PTR(pReq->pSession)))
     484        if (RT_UNLIKELY(!RT_VALID_PTR(pReq->pSession)))
    485485            return VERR_INVALID_PARAMETER;
    486486        if (RT_UNLIKELY(pSession->pDevExt != &g_VBoxDrvFreeBSDDevExt))
  • trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c

    r89370 r90780  
    739739     * Some quick validations.
    740740     */
    741     if (RT_UNLIKELY(!VALID_PTR(pReq)))
     741    if (RT_UNLIKELY(!RT_VALID_PTR(pReq)))
    742742        return VERR_INVALID_POINTER;
    743743
     
    745745    if (pSession)
    746746    {
    747         if (RT_UNLIKELY(!VALID_PTR(pSession)))
     747        if (RT_UNLIKELY(!RT_VALID_PTR(pSession)))
    748748            return VERR_INVALID_PARAMETER;
    749749        if (RT_UNLIKELY(pSession->pDevExt != &g_DevExt))
  • trunk/src/VBox/HostDrivers/Support/solaris/SUPDrv-solaris.c

    r88169 r90780  
    862862     * Some quick validations.
    863863     */
    864     if (RT_UNLIKELY(!VALID_PTR(pReq)))
     864    if (RT_UNLIKELY(!RT_VALID_PTR(pReq)))
    865865        return VERR_INVALID_POINTER;
    866866
     
    868868    if (pSession)
    869869    {
    870         if (RT_UNLIKELY(!VALID_PTR(pSession)))
     870        if (RT_UNLIKELY(!RT_VALID_PTR(pSession)))
    871871            return VERR_INVALID_PARAMETER;
    872872        if (RT_UNLIKELY(pSession->pDevExt != &g_DevExt))
  • trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp

    r87700 r90780  
    14751475        /* Verify the pDevExt in the session. */
    14761476        if (  pStack->Parameters.DeviceIoControl.IoControlCode != SUPDRV_IDC_REQ_CONNECT
    1477             ? VALID_PTR(pSession) && pSession->pDevExt == pDevExt
     1477            ? RT_VALID_PTR(pSession) && pSession->pDevExt == pDevExt
    14781478            : !pSession
    14791479           )
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette