VirtualBox

Ignore:
Timestamp:
Aug 23, 2021 10:28:24 AM (3 years ago)
Author:
vboxsync
Message:

Devices: More VALID_PTR -> RT_VALID_PTR/AssertPtr.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/darwin/USBProxyDevice-darwin.cpp

    r87419 r90791  
    450450
    451451    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))
    453453    {
    454454        AssertPtr(pNew->pvBuffer);
     
    458458    {
    459459        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))
    461461        {
    462462            AssertPtr(pNew->pvFrames);
Note: See TracChangeset for help on using the changeset viewer.

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