VirtualBox

Changeset 74772 in vbox


Ignore:
Timestamp:
Oct 11, 2018 1:25:01 PM (6 years ago)
Author:
vboxsync
Message:

Main/iokit.cpp: Don't assert on stupid Belkin USB-C thingy not getting a BSD name.

File:
1 edited

Legend:

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

    r73097 r74772  
    16891689                        AssertBreak(darwinDictGetData(PropsRef, CFSTR("IOMACAddress"), &Mac, sizeof(Mac)));
    16901690
    1691                         /* The BSD Name from the interface dictionary. */
     1691                        /* The BSD Name from the interface dictionary.  No assert here as the belkin USB-C gadget
     1692                           does not always end up with a BSD name, typically requiring replugging. */
    16921693                        char szBSDName[RT_SIZEOFMEMB(DARWINETHERNIC, szBSDName)];
    1693                         AssertBreak(darwinDictGetString(IfPropsRef, CFSTR("BSD Name"), szBSDName, sizeof(szBSDName)));
     1694                        if (RT_UNLIKELY(darwinDictGetString(IfPropsRef, CFSTR("BSD Name"), szBSDName, sizeof(szBSDName))))
     1695                        {
     1696                            LogRelMax(32, ("DarwinGetEthernetControllers: Warning! Failed to get 'BSD Name'; provider class %s\n", szTmp));
     1697                            break;
     1698                        }
    16941699
    16951700                        /* Check if it's really wireless. */
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