VirtualBox

Changeset 27527 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Mar 19, 2010 12:21:53 PM (15 years ago)
Author:
vboxsync
Message:

Net-OSX: try to narrow down a bug when getting the host network interfaces (temporary)

File:
1 edited

Legend:

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

    r26511 r27527  
    410410            ComObjPtr<HostNetworkInterface> IfObj;
    411411            IfObj.createObject();
    412             if (SUCCEEDED(IfObj->init(Bstr(pNew->szName), enmType, pNew)))
    413                 /* Make sure the default interface gets to the beginning. */
    414                 if (pIfMsg->ifm_index == u16DefaultIface)
    415                     list.push_front(IfObj);
    416                 else
    417                     list.push_back(IfObj);
     412            try
     413            {
     414#ifdef DEBUG
     415                printf("IF '%s'\n", pNew->szName);
     416#endif /* DEBUG */
     417                if (SUCCEEDED(IfObj->init(Bstr(pNew->szName), enmType, pNew)))
     418                    /* Make sure the default interface gets to the beginning. */
     419                    if (pIfMsg->ifm_index == u16DefaultIface)
     420                        list.push_front(IfObj);
     421                    else
     422                        list.push_back(IfObj);
     423            }
     424            catch(...)
     425            {
     426#ifdef DEBUG
     427                printf("Throw happens\n");
     428#endif /* DEBUG */
     429            }
     430
    418431        }
    419432        RTMemFree(pNew);
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