VirtualBox

忽略:
時間撮記:
2016-5-27 上午09:09:18 (9 年 以前)
作者:
vboxsync
訊息:

DrvHostBase: warnings/fixes on darwin

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • 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)
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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