- Timestamp:
- Oct 14, 2013 10:01:16 PM (11 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/USB/DevOHCI.cpp
r48947 r49092 5003 5003 */ 5004 5004 PDMCritSectEnter(pThis->pDevInsR3->pCritSectRoR3, VERR_IGNORED); 5005 /** @todo we a) can't tell which are proxied, and b)this won't work well when continuing after saving! */5005 /** @todo this won't work well when continuing after saving! */ 5006 5006 for (unsigned i = 0; i < RT_ELEMENTS(pRh->aPorts); i++) 5007 5007 { … … 5009 5009 if (pDev) 5010 5010 { 5011 VUSBIRhDetachDevice(pRh->pIRhConn, pDev); 5012 /* 5013 * Save the device pointers here so we can reattach them afterwards. 5014 * This will work fine even if the save fails since the Done handler is 5015 * called unconditionally if the Prep handler was called. 5016 */ 5017 pRh->aPorts[i].pDev = pDev; 5011 if (!VUSBIDevIsEmulated(pDev)) 5012 { 5013 VUSBIRhDetachDevice(pRh->pIRhConn, pDev); 5014 /* 5015 * Save the device pointers here so we can reattach them afterwards. 5016 * This will work fine even if the save fails since the Done handler is 5017 * called unconditionally if the Prep handler was called. 5018 */ 5019 pRh->aPorts[i].pDev = pDev; 5020 } 5021 else /* Reap URBs one last time to make sure the lists are empty. */ 5022 VUSBIRhReapAsyncUrbs(pEhci->RootHub.pIRhConn, 0); 5018 5023 } 5019 5024 } … … 5080 5085 { 5081 5086 PVUSBIDEVICE pDev = Rh.aPorts[i].pDev; 5082 if (pDev) 5087 if ( pDev 5088 && !VUSBIDevIsEmulated(pDev)) 5083 5089 VUSBIRhAttachDevice(pRh->pIRhConn, pDev); 5084 5090 } … … 5118 5124 { 5119 5125 PVUSBIDEVICE pDev = pRh->aPorts[i].pDev; 5120 if (pDev) 5126 if ( pDev 5127 && !VUSBIDevIsEmulated(pDev)) 5121 5128 { 5122 5129 Load.apDevs[Load.cDevs++] = pDev; -
trunk/src/VBox/VMM/VMMR3/PDMUsb.cpp
r48986 r49092 227 227 ("Invalid name '%.s'\n", sizeof(pReg->szName), pReg->szName), 228 228 VERR_PDM_INVALID_USB_REGISTRATION); 229 AssertMsgReturn((pReg->fFlags & ~(PDM_USBREG_HIGHSPEED_CAPABLE )) == 0,229 AssertMsgReturn((pReg->fFlags & ~(PDM_USBREG_HIGHSPEED_CAPABLE | PDM_USBREG_EMULATED_DEVICE)) == 0, 230 230 ("fFlags=%#x\n", pReg->fFlags), VERR_PDM_INVALID_USB_REGISTRATION); 231 231 AssertMsgReturn(pReg->cMaxInstances > 0,
Note:
See TracChangeset
for help on using the changeset viewer.