Changeset 27527 in vbox for trunk/src/VBox/Main
- Timestamp:
- Mar 19, 2010 12:21:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/darwin/NetIf-darwin.cpp
r26511 r27527 410 410 ComObjPtr<HostNetworkInterface> IfObj; 411 411 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 418 431 } 419 432 RTMemFree(pNew);
Note:
See TracChangeset
for help on using the changeset viewer.