Changeset 11503 in vbox for trunk/src/VBox/Main
- Timestamp:
- Aug 20, 2008 12:05:27 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/darwin/iokit.cpp
r11415 r11503 1554 1554 if (strcmp(pNew->szBSDName, pCur->szBSDName) >= 0) 1555 1555 break; 1556 Assert(pPrev);1557 1556 } 1558 pNew->pNext = pPrev->pNext; 1559 pPrev->pNext = pNew; 1560 if (pPrev == pTail) 1561 pTail = pNew; 1557 if (pPrev) 1558 { 1559 /* tail or in list. */ 1560 pNew->pNext = pPrev->pNext; 1561 pPrev->pNext = pNew; 1562 if (pPrev == pTail) 1563 pTail = pNew; 1564 } 1565 else 1566 { 1567 /* head */ 1568 pNew->pNext = pHead; 1569 pHead = pNew; 1570 } 1562 1571 } 1563 1572 else 1564 1573 { 1574 /* empty list */ 1565 1575 pNew->pNext = NULL; 1566 1576 pTail = pHead = pNew;
Note:
See TracChangeset
for help on using the changeset viewer.