Changeset 90791 in vbox
- Timestamp:
- Aug 23, 2021 10:28:24 AM (3 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/HGSMI/HGSMIHost.cpp
r85121 r90791 1554 1554 { 1555 1555 pIns->pVM = pVM; 1556 pIns->pszName = VALID_PTR(pszName) ? pszName : "";1556 pIns->pszName = RT_VALID_PTR(pszName) ? pszName : ""; 1557 1557 1558 1558 hgsmiHostHeapSetupUninitialized(&pIns->hostHeap); -
trunk/src/VBox/Devices/Network/DrvIntNet.cpp
r90330 r90791 1784 1784 return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, 1785 1785 N_("Failed to get ring-3 buffer for the newly created interface to '%s'"), pThis->szNetwork); 1786 AssertRelease( VALID_PTR(GetBufferPtrsReq.pRing3Buf));1786 AssertRelease(RT_VALID_PTR(GetBufferPtrsReq.pRing3Buf)); 1787 1787 pThis->pBufR3 = GetBufferPtrsReq.pRing3Buf; 1788 1788 pThis->pBufR0 = GetBufferPtrsReq.pRing0Buf; -
trunk/src/VBox/Devices/Storage/DevAHCI.cpp
r87773 r90791 5178 5178 /* Query the media interface. */ 5179 5179 pAhciPortR3->pDrvMedia = PDMIBASE_QUERY_INTERFACE(pAhciPortR3->pDrvBase, PDMIMEDIA); 5180 AssertMsgReturn( VALID_PTR(pAhciPortR3->pDrvMedia),5180 AssertMsgReturn(RT_VALID_PTR(pAhciPortR3->pDrvMedia), 5181 5181 ("AHCI configuration error: LUN#%d misses the basic media interface!\n", pAhciPort->iLUN), 5182 5182 VERR_PDM_MISSING_INTERFACE); … … 5184 5184 /* Get the extended media interface. */ 5185 5185 pAhciPortR3->pDrvMediaEx = PDMIBASE_QUERY_INTERFACE(pAhciPortR3->pDrvBase, PDMIMEDIAEX); 5186 AssertMsgReturn( VALID_PTR(pAhciPortR3->pDrvMediaEx),5186 AssertMsgReturn(RT_VALID_PTR(pAhciPortR3->pDrvMediaEx), 5187 5187 ("AHCI configuration error: LUN#%d misses the extended media interface!\n", pAhciPort->iLUN), 5188 5188 VERR_PDM_MISSING_INTERFACE); -
trunk/src/VBox/Devices/Storage/DevBusLogic.cpp
r90445 r90791 4062 4062 /* Query the media interface. */ 4063 4063 pDevice->pDrvMedia = PDMIBASE_QUERY_INTERFACE(pDevice->pDrvBase, PDMIMEDIA); 4064 AssertMsgReturn( VALID_PTR(pDevice->pDrvMedia),4064 AssertMsgReturn(RT_VALID_PTR(pDevice->pDrvMedia), 4065 4065 ("BusLogic configuration error: LUN#%d misses the basic media interface!\n", pDevice->iLUN), 4066 4066 VERR_PDM_MISSING_INTERFACE); … … 4068 4068 /* Get the extended media interface. */ 4069 4069 pDevice->pDrvMediaEx = PDMIBASE_QUERY_INTERFACE(pDevice->pDrvBase, PDMIMEDIAEX); 4070 AssertMsgReturn( VALID_PTR(pDevice->pDrvMediaEx),4070 AssertMsgReturn(RT_VALID_PTR(pDevice->pDrvMediaEx), 4071 4071 ("BusLogic configuration error: LUN#%d misses the extended media interface!\n", pDevice->iLUN), 4072 4072 VERR_PDM_MISSING_INTERFACE); … … 4337 4337 /* Query the media interface. */ 4338 4338 pDevice->pDrvMedia = PDMIBASE_QUERY_INTERFACE(pDevice->pDrvBase, PDMIMEDIA); 4339 AssertMsgReturn( VALID_PTR(pDevice->pDrvMedia),4339 AssertMsgReturn(RT_VALID_PTR(pDevice->pDrvMedia), 4340 4340 ("Buslogic configuration error: LUN#%d misses the basic media interface!\n", pDevice->iLUN), 4341 4341 VERR_PDM_MISSING_INTERFACE); … … 4343 4343 /* Get the extended media interface. */ 4344 4344 pDevice->pDrvMediaEx = PDMIBASE_QUERY_INTERFACE(pDevice->pDrvBase, PDMIMEDIAEX); 4345 AssertMsgReturn( VALID_PTR(pDevice->pDrvMediaEx),4345 AssertMsgReturn(RT_VALID_PTR(pDevice->pDrvMediaEx), 4346 4346 ("Buslogic configuration error: LUN#%d misses the extended media interface!\n", pDevice->iLUN), 4347 4347 VERR_PDM_MISSING_INTERFACE); -
trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp
r90445 r90791 4886 4886 /* Query the media interface. */ 4887 4887 pDevice->pDrvMedia = PDMIBASE_QUERY_INTERFACE(pDevice->pDrvBase, PDMIMEDIA); 4888 AssertMsgReturn( VALID_PTR(pDevice->pDrvMedia),4888 AssertMsgReturn(RT_VALID_PTR(pDevice->pDrvMedia), 4889 4889 ("LsiLogic configuration error: LUN#%d misses the basic media interface!\n", pDevice->iLUN), 4890 4890 VERR_PDM_MISSING_INTERFACE); … … 4892 4892 /* Get the extended media interface. */ 4893 4893 pDevice->pDrvMediaEx = PDMIBASE_QUERY_INTERFACE(pDevice->pDrvBase, PDMIMEDIAEX); 4894 AssertMsgReturn( VALID_PTR(pDevice->pDrvMediaEx),4894 AssertMsgReturn(RT_VALID_PTR(pDevice->pDrvMediaEx), 4895 4895 ("LsiLogic configuration error: LUN#%d misses the extended media interface!\n", pDevice->iLUN), 4896 4896 VERR_PDM_MISSING_INTERFACE); … … 5280 5280 /* Query the media interface. */ 5281 5281 pDevice->pDrvMedia = PDMIBASE_QUERY_INTERFACE(pDevice->pDrvBase, PDMIMEDIA); 5282 AssertMsgReturn( VALID_PTR(pDevice->pDrvMedia),5282 AssertMsgReturn(RT_VALID_PTR(pDevice->pDrvMedia), 5283 5283 ("LsiLogic configuration error: LUN#%d misses the basic media interface!\n", pDevice->iLUN), 5284 5284 VERR_PDM_MISSING_INTERFACE); … … 5286 5286 /* Get the extended media interface. */ 5287 5287 pDevice->pDrvMediaEx = PDMIBASE_QUERY_INTERFACE(pDevice->pDrvBase, PDMIMEDIAEX); 5288 AssertMsgReturn( VALID_PTR(pDevice->pDrvMediaEx),5288 AssertMsgReturn(RT_VALID_PTR(pDevice->pDrvMediaEx), 5289 5289 ("LsiLogic configuration error: LUN#%d misses the extended media interface!\n", pDevice->iLUN), 5290 5290 VERR_PDM_MISSING_INTERFACE); -
trunk/src/VBox/Devices/Storage/DevVirtioSCSI.cpp
r88827 r90791 2151 2151 pTarget->fPresent = true; 2152 2152 pTarget->pDrvMedia = PDMIBASE_QUERY_INTERFACE(pTarget->pDrvBase, PDMIMEDIA); 2153 AssertMsgReturn( VALID_PTR(pTarget->pDrvMedia),2153 AssertMsgReturn(RT_VALID_PTR(pTarget->pDrvMedia), 2154 2154 ("virtio-scsi configuration error: LUN#%d missing basic media interface!\n", uTarget), 2155 2155 VERR_PDM_MISSING_INTERFACE); … … 2157 2157 /* Get the extended media interface. */ 2158 2158 pTarget->pDrvMediaEx = PDMIBASE_QUERY_INTERFACE(pTarget->pDrvBase, PDMIMEDIAEX); 2159 AssertMsgReturn( VALID_PTR(pTarget->pDrvMediaEx),2159 AssertMsgReturn(RT_VALID_PTR(pTarget->pDrvMediaEx), 2160 2160 ("virtio-scsi configuration error: LUN#%d missing extended media interface!\n", uTarget), 2161 2161 VERR_PDM_MISSING_INTERFACE); 2162 2162 2163 2163 rc = pTarget->pDrvMediaEx->pfnIoReqAllocSizeSet(pTarget->pDrvMediaEx, sizeof(VIRTIOSCSIREQ)); 2164 AssertMsgReturn( VALID_PTR(pTarget->pDrvMediaEx),2164 AssertMsgReturn(RT_VALID_PTR(pTarget->pDrvMediaEx), 2165 2165 ("virtio-scsi configuration error: LUN#%u: Failed to set I/O request size!\n", uTarget), 2166 2166 rc); … … 2551 2551 2552 2552 pTarget->pDrvMedia = PDMIBASE_QUERY_INTERFACE(pTarget->pDrvBase, PDMIMEDIA); 2553 AssertMsgReturn( VALID_PTR(pTarget->pDrvMedia),2553 AssertMsgReturn(RT_VALID_PTR(pTarget->pDrvMedia), 2554 2554 ("virtio-scsi configuration error: LUN#%d missing basic media interface!\n", uTarget), 2555 2555 VERR_PDM_MISSING_INTERFACE); 2556 2556 /* Get the extended media interface. */ 2557 2557 pTarget->pDrvMediaEx = PDMIBASE_QUERY_INTERFACE(pTarget->pDrvBase, PDMIMEDIAEX); 2558 AssertMsgReturn( VALID_PTR(pTarget->pDrvMediaEx),2558 AssertMsgReturn(RT_VALID_PTR(pTarget->pDrvMediaEx), 2559 2559 ("virtio-scsi configuration error: LUN#%d missing extended media interface!\n", uTarget), 2560 2560 VERR_PDM_MISSING_INTERFACE); 2561 2561 2562 2562 rc = pTarget->pDrvMediaEx->pfnIoReqAllocSizeSet(pTarget->pDrvMediaEx, sizeof(VIRTIOSCSIREQ)); 2563 AssertMsgReturn( VALID_PTR(pTarget->pDrvMediaEx),2563 AssertMsgReturn(RT_VALID_PTR(pTarget->pDrvMediaEx), 2564 2564 ("virtio-scsi configuration error: LUN#%u: Failed to set I/O request size!\n", uTarget), 2565 2565 rc); -
trunk/src/VBox/Devices/Storage/DrvHostDVD.cpp
r82968 r90791 408 408 */ 409 409 if ( *pu8ScsiSts == SCSI_STATUS_CHECK_CONDITION 410 && VALID_PTR(pabSense)410 && RT_VALID_PTR(pabSense) 411 411 && cbSense > 0) 412 412 { -
trunk/src/VBox/Devices/Storage/DrvSCSI.cpp
r82968 r90791 1229 1229 */ 1230 1230 pThis->pDrvMedia = PDMIBASE_QUERY_INTERFACE(pThis->pDrvBase, PDMIMEDIA); 1231 AssertMsgReturn( VALID_PTR(pThis->pDrvMedia), ("VSCSI configuration error: No media interface!\n"),1231 AssertMsgReturn(RT_VALID_PTR(pThis->pDrvMedia), ("VSCSI configuration error: No media interface!\n"), 1232 1232 VERR_PDM_MISSING_INTERFACE); 1233 1233 1234 1234 /* Query the extended media interface. */ 1235 1235 pThis->pDrvMediaEx = PDMIBASE_QUERY_INTERFACE(pThis->pDrvBase, PDMIMEDIAEX); 1236 AssertMsgReturn( VALID_PTR(pThis->pDrvMediaEx), ("VSCSI configuration error: No extended media interface!\n"),1236 AssertMsgReturn(RT_VALID_PTR(pThis->pDrvMediaEx), ("VSCSI configuration error: No extended media interface!\n"), 1237 1237 VERR_PDM_MISSING_INTERFACE); 1238 1238 … … 1431 1431 */ 1432 1432 pThis->pDrvMedia = PDMIBASE_QUERY_INTERFACE(pThis->pDrvBase, PDMIMEDIA); 1433 AssertMsgReturn( VALID_PTR(pThis->pDrvMedia), ("VSCSI configuration error: No media interface!\n"),1433 AssertMsgReturn(RT_VALID_PTR(pThis->pDrvMedia), ("VSCSI configuration error: No media interface!\n"), 1434 1434 VERR_PDM_MISSING_INTERFACE); 1435 1435 1436 1436 /* Query the extended media interface. */ 1437 1437 pThis->pDrvMediaEx = PDMIBASE_QUERY_INTERFACE(pThis->pDrvBase, PDMIMEDIAEX); 1438 AssertMsgReturn( VALID_PTR(pThis->pDrvMediaEx), ("VSCSI configuration error: No extended media interface!\n"),1438 AssertMsgReturn(RT_VALID_PTR(pThis->pDrvMediaEx), ("VSCSI configuration error: No extended media interface!\n"), 1439 1439 VERR_PDM_MISSING_INTERFACE); 1440 1440 -
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r82968 r90791 2721 2721 void *pvBuf = RTSgBufGetNextSegment(pIoReq->ReadWrite.pSgBuf, &cbReqIo); 2722 2722 2723 Assert(cbReqIo > 0 && VALID_PTR(pvBuf));2723 Assert(cbReqIo > 0 && RT_VALID_PTR(pvBuf)); 2724 2724 rc = VDRead(pThis->pDisk, pIoReq->ReadWrite.offStart, pvBuf, cbReqIo); 2725 2725 if (RT_SUCCESS(rc)) … … 2770 2770 void *pvBuf = RTSgBufGetNextSegment(pIoReq->ReadWrite.pSgBuf, &cbReqIo); 2771 2771 2772 Assert(cbReqIo > 0 && VALID_PTR(pvBuf));2772 Assert(cbReqIo > 0 && RT_VALID_PTR(pvBuf)); 2773 2773 rc = VDWrite(pThis->pDisk, pIoReq->ReadWrite.offStart, pvBuf, cbReqIo); 2774 2774 if (RT_SUCCESS(rc)) -
trunk/src/VBox/Devices/Storage/UsbMsd.cpp
r87119 r90791 1259 1259 PUSBMSD pThis = PDMINS_2_DATA(pUsbIns, PUSBMSD); 1260 1260 1261 if ( VALID_PTR(pThis->pReq)1261 if ( RT_VALID_PTR(pThis->pReq) 1262 1262 && pThis->pReq->enmState == USBMSDREQSTATE_EXECUTING) 1263 1263 return false; -
trunk/src/VBox/Devices/USB/VUSBInternal.h
r90049 r90791 617 617 #ifdef VBOX_STRICT 618 618 # define vusbUrbAssert(pUrb) do { \ 619 Assert Msg(VALID_PTR((pUrb)), ("%p\n", (pUrb))); \619 AssertPtr((pUrb)); \ 620 620 AssertMsg((pUrb)->u32Magic == VUSBURB_MAGIC, ("%#x", (pUrb)->u32Magic)); \ 621 621 AssertMsg((pUrb)->enmState > VUSBURBSTATE_INVALID && (pUrb)->enmState < VUSBURBSTATE_END, \ -
trunk/src/VBox/Devices/USB/darwin/USBProxyDevice-darwin.cpp
r87419 r90791 450 450 451 451 IOReturn irc = (*pIf->ppIfI)->LowLatencyCreateBuffer(pIf->ppIfI, &pNew->pvBuffer, 8192 * RT_ELEMENTS(pNew->aBuffers), enmLLType); 452 if ( irc == kIOReturnSuccess !=VALID_PTR(pNew->pvBuffer))452 if ((irc == kIOReturnSuccess) != RT_VALID_PTR(pNew->pvBuffer)) 453 453 { 454 454 AssertPtr(pNew->pvBuffer); … … 458 458 { 459 459 irc = (*pIf->ppIfI)->LowLatencyCreateBuffer(pIf->ppIfI, &pNew->pvFrames, PAGE_SIZE, kUSBLowLatencyFrameListBuffer); 460 if ( irc == kIOReturnSuccess !=VALID_PTR(pNew->pvFrames))460 if ((irc == kIOReturnSuccess) != RT_VALID_PTR(pNew->pvFrames)) 461 461 { 462 462 AssertPtr(pNew->pvFrames); -
trunk/src/VBox/Devices/VirtIO/VirtioCore.h
r86407 r90791 652 652 { 653 653 AssertPtr(pGcSgBuf); 654 Assert((cSegs > 0 && VALID_PTR(paSegs)) || (!cSegs && !paSegs));654 Assert((cSegs > 0 && RT_VALID_PTR(paSegs)) || (!cSegs && !paSegs)); 655 655 Assert(cSegs < (~(unsigned)0 >> 1)); 656 656
Note:
See TracChangeset
for help on using the changeset viewer.