VirtualBox

Changeset 61231 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
May 27, 2016 9:09:18 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
107520
Message:

DrvHostBase: warnings/fixes on darwin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DrvHostBase.cpp

    r59252 r61231  
    814814     */
    815815    CFMutableDictionaryRef RefMatchingDict = IOServiceMatching("IOCDBlockStorageDevice");
    816     AssertReturn(RefMatchingDict, NULL);
     816    AssertReturn(RefMatchingDict, VERR_NOT_FOUND);
    817817
    818818    /*
     
    821821    io_iterator_t DVDServices = NULL;
    822822    IOReturn irc = IOServiceGetMatchingServices(pThis->MasterPort, RefMatchingDict, &DVDServices);
    823     AssertMsgReturn(irc == kIOReturnSuccess, ("irc=%d\n", irc), NULL);
     823    AssertMsgReturn(irc == kIOReturnSuccess, ("irc=%d\n", irc), VERR_NOT_FOUND);
    824824    RefMatchingDict = NULL; /* the reference is consumed by IOServiceGetMatchingServices. */
    825825
     
    17951795    {
    17961796        mach_port_deallocate(mach_task_self(), pThis->MasterPort);
    1797         pThis->MasterPort = NULL;
     1797        pThis->MasterPort = 0;
    17981798    }
    17991799    if (pThis->pDASession)
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