VirtualBox

Changeset 11639 in vbox for trunk/src/VBox/Main/darwin


Ignore:
Timestamp:
Aug 26, 2008 1:09:17 AM (16 years ago)
Author:
vboxsync
Message:

#1869: Change the interface soring so that the ones marked as 'pimary' is at the head of the list. This way the GUI default should be a bit more sensible (it selects the first entry).

File:
1 edited

Legend:

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

    r11638 r11639  
    15691569
    15701570                            /*
    1571                              * Link it into the list, keep the list sorted by the BSD name.
     1571                             * Link it into the list, keep the list sorted by fPrimaryIf and the BSD name.
    15721572                             */
    15731573                            if (pTail)
     
    15781578                                    pPrev = NULL;
    15791579                                    for (PDARWINETHERNIC pCur = pHead; pCur; pPrev = pCur, pCur = pCur->pNext)
    1580                                         if (strcmp(pNew->szBSDName, pCur->szBSDName) >= 0)
     1580                                        if (    (int)pNew->fPrimaryIf - (int)pCur->fPrimaryIf >= 0
     1581                                            &&  strcmp(pNew->szBSDName, pCur->szBSDName) >= 0)
    15811582                                            break;
    15821583                                }
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