VirtualBox

Ignore:
Timestamp:
Jan 24, 2023 3:32:43 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
155493
Message:

Main/src-server: rc -> hrc/vrc (partial). bugref:10223

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/darwin/iokit.cpp

    r98287 r98288  
    836836     */
    837837    io_iterator_t USBDevices = IO_OBJECT_NULL;
    838     IOReturn rc = IOServiceGetMatchingServices(g_MasterPort, RefMatchingDict, &USBDevices);
    839     AssertMsgReturn(rc == kIOReturnSuccess, ("rc=%d\n", rc), KERN_FAILURE);
     838    IOReturn irc = IOServiceGetMatchingServices(g_MasterPort, RefMatchingDict, &USBDevices);
     839    AssertMsgReturn(irc == kIOReturnSuccess, ("irc=%d\n", irc), KERN_FAILURE);
    840840    RefMatchingDict = NULL; /* the reference is consumed by IOServiceGetMatchingServices. */
    841841
     
    10871087     */
    10881088    io_iterator_t USBDevices = IO_OBJECT_NULL;
    1089     IOReturn rc = IOServiceGetMatchingServices(g_MasterPort, RefMatchingDict, &USBDevices);
    1090     AssertMsgReturn(rc == kIOReturnSuccess, ("rc=%d\n", rc), NULL);
     1089    IOReturn irc = IOServiceGetMatchingServices(g_MasterPort, RefMatchingDict, &USBDevices);
     1090    AssertMsgReturn(irc == kIOReturnSuccess, ("irc=%d\n", irc), NULL);
    10911091    RefMatchingDict = NULL; /* the reference is consumed by IOServiceGetMatchingServices. */
    10921092
     
    11881188                SInt32 Score = 0;
    11891189                IOCFPlugInInterface **ppPlugInInterface = NULL;
    1190                 rc = IOCreatePlugInInterfaceForService(USBDevice, kIOUSBDeviceUserClientTypeID,
    1191                                                        kIOCFPlugInInterfaceID, &ppPlugInInterface, &Score);
    1192                 if (rc == kIOReturnSuccess)
     1190                irc = IOCreatePlugInInterfaceForService(USBDevice, kIOUSBDeviceUserClientTypeID,
     1191                                                        kIOCFPlugInInterfaceID, &ppPlugInInterface, &Score);
     1192                if (irc == kIOReturnSuccess)
    11931193                {
    11941194                    IOUSBDeviceInterface245 **ppUSBDevI = NULL;
     
    11961196                                                                       CFUUIDGetUUIDBytes(kIOUSBDeviceInterfaceID245),
    11971197                                                                       (LPVOID *)&ppUSBDevI);
    1198                     rc = IODestroyPlugInInterface(ppPlugInInterface); Assert(rc == kIOReturnSuccess);
     1198                    irc = IODestroyPlugInInterface(ppPlugInInterface); Assert(irc == kIOReturnSuccess);
    11991199                    ppPlugInInterface = NULL;
    12001200                    if (hrc == S_OK)
     
    13161316     */
    13171317    io_iterator_t DVDServices = IO_OBJECT_NULL;
    1318     IOReturn rc = IOServiceGetMatchingServices(g_MasterPort, RefMatchingDict, &DVDServices);
    1319     AssertMsgReturn(rc == kIOReturnSuccess, ("rc=%d\n", rc), NULL);
     1318    IOReturn irc = IOServiceGetMatchingServices(g_MasterPort, RefMatchingDict, &DVDServices);
     1319    AssertMsgReturn(irc == kIOReturnSuccess, ("irc=%d\n", irc), NULL);
    13201320    RefMatchingDict = NULL; /* the reference is consumed by IOServiceGetMatchingServices. */
    13211321
     
    14471447     */
    14481448    io_iterator_t MediaServices = IO_OBJECT_NULL;
    1449     IOReturn rc = IOServiceGetMatchingServices(g_MasterPort, RefMatchingDict, &MediaServices);
    1450     AssertMsgReturn(rc == kIOReturnSuccess, ("rc=%d\n", rc), NULL);
     1449    IOReturn irc = IOServiceGetMatchingServices(g_MasterPort, RefMatchingDict, &MediaServices);
     1450    AssertMsgReturn(irc == kIOReturnSuccess, ("irc=%d\n", irc), NULL);
    14511451    RefMatchingDict = NULL; /* the reference is consumed by IOServiceGetMatchingServices. */
    14521452
     
    16121612     */
    16131613    io_iterator_t EtherIfServices = IO_OBJECT_NULL;
    1614     IOReturn rc = IOServiceGetMatchingServices(g_MasterPort, RefMatchingDict, &EtherIfServices);
    1615     AssertMsgReturn(rc == kIOReturnSuccess, ("rc=%d\n", rc), NULL);
     1614    IOReturn irc = IOServiceGetMatchingServices(g_MasterPort, RefMatchingDict, &EtherIfServices);
     1615    AssertMsgReturn(irc == kIOReturnSuccess, ("irc=%d\n", irc), NULL);
    16161616    RefMatchingDict = NULL; /* the reference is consumed by IOServiceGetMatchingServices. */
    16171617
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