Changeset 42140 in vbox for trunk/src/VBox/VMM/VMMR3/PDMDriver.cpp
- Timestamp:
- Jul 13, 2012 9:59:27 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PDMDriver.cpp
r42138 r42140 396 396 */ 397 397 const char *pszDevice = pLun->pDevIns 398 ? pLun->pDevIns-> Internal.s.pDevR3->pReg->szName399 : pLun->pUsbIns-> Internal.s.pUsbDev->pReg->szName;398 ? pLun->pDevIns->pReg->szName 399 : pLun->pUsbIns->pReg->szName; 400 400 char szLun[32]; 401 401 RTStrPrintf(szLun, sizeof(szLun), "%u", pLun->iLun); … … 834 834 * The requirement is that the driver/device above has a detach method. 835 835 */ 836 if ( pDrvIns->Internal.s.pUp836 if ( pDrvIns->Internal.s.pUp 837 837 ? !pDrvIns->Internal.s.pUp->pReg->pfnDetach 838 838 : pDrvIns->Internal.s.pLun->pDevIns 839 ? !pDrvIns->Internal.s.pLun->pDevIns-> Internal.s.pDevR3->pReg->pfnDetach840 : !pDrvIns->Internal.s.pLun->pUsbIns-> Internal.s.pUsbDev->pReg->pfnDriverDetach839 ? !pDrvIns->Internal.s.pLun->pDevIns->pReg->pfnDetach 840 : !pDrvIns->Internal.s.pLun->pUsbIns->pReg->pfnDriverDetach 841 841 ) 842 842 { … … 910 910 if (pLun->pDevIns) 911 911 { 912 if (pLun->pDevIns-> Internal.s.pDevR3->pReg->pfnDetach)912 if (pLun->pDevIns->pReg->pfnDetach) 913 913 { 914 914 PDMCritSectEnter(pLun->pDevIns->pCritSectRoR3, VERR_IGNORED); 915 pLun->pDevIns-> Internal.s.pDevR3->pReg->pfnDetach(pLun->pDevIns, pLun->iLun, fFlags);915 pLun->pDevIns->pReg->pfnDetach(pLun->pDevIns, pLun->iLun, fFlags); 916 916 PDMCritSectLeave(pLun->pDevIns->pCritSectRoR3); 917 917 } … … 919 919 else 920 920 { 921 if (pLun->pUsbIns-> Internal.s.pUsbDev->pReg->pfnDriverDetach)921 if (pLun->pUsbIns->pReg->pfnDriverDetach) 922 922 { 923 923 /** @todo USB device locking? */ 924 924 /** @todo add flags to pfnDriverDetach. */ 925 pLun->pUsbIns-> Internal.s.pUsbDev->pReg->pfnDriverDetach(pLun->pUsbIns, pLun->iLun);925 pLun->pUsbIns->pReg->pfnDriverDetach(pLun->pUsbIns, pLun->iLun); 926 926 } 927 927 }
Note:
See TracChangeset
for help on using the changeset viewer.