Changeset 32823 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoMisc.h
- Timestamp:
- Sep 29, 2010 4:50:53 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoMisc.h
r32766 r32823 13 13 #ifndef ___VBoxVideoMisc_h__ 14 14 #define ___VBoxVideoMisc_h__ 15 16 DECLINLINE(void) vboxVideoLeDetach(LIST_ENTRY *pList, LIST_ENTRY *pDstList) 17 { 18 if (IsListEmpty(pList)) 19 { 20 InitializeListHead(pDstList); 21 } 22 else 23 { 24 *pDstList = *pList; 25 Assert(pDstList->Flink->Blink == pList); 26 Assert(pDstList->Blink->Flink == pList); 27 /* pDstList->Flink & pDstList->Blink point to the "real| entries, never to pList 28 * since we've checked IsListEmpty(pList) above */ 29 pDstList->Flink->Blink = pDstList; 30 pDstList->Blink->Flink = pDstList; 31 InitializeListHead(pList); 32 } 33 } 15 34 16 35 typedef struct _DEVICE_EXTENSION *PDEVICE_EXTENSION;
Note:
See TracChangeset
for help on using the changeset viewer.