Changeset 62462 in vbox for trunk/src/VBox
- Timestamp:
- Jul 22, 2016 4:32:35 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/USB/USBProxyDevice.cpp
r61247 r62462 112 112 rc = pProxyDev->pOps->pfnUrbCancel(pProxyDev, &Urb); 113 113 AssertRC(rc); 114 /** @todo :This breaks the comment above... */114 /** @todo This breaks the comment above... */ 115 115 pUrbReaped = pProxyDev->pOps->pfnUrbReap(pProxyDev, RT_INDEFINITE_WAIT); 116 116 } … … 163 163 } 164 164 165 if ( (cbDesc > (Urb.cbData - sizeof(VUSBSETUP))))165 if (cbDesc > Urb.cbData - sizeof(VUSBSETUP)) 166 166 { 167 167 Log(("GetStdDescSync: Descriptor length too short, cbDesc=%u, Urb.cbData=%u\n", cbDesc, Urb.cbData)); … … 169 169 } 170 170 171 if ((cbInitialHint != cbHint) && 172 ((cbDesc != cbHint) || (Urb.cbData < cbInitialHint))) 171 if ( cbInitialHint != cbHint 172 && ( cbDesc != cbHint 173 || Urb.cbData < cbInitialHint) ) 173 174 { 174 175 Log(("GetStdDescSync: Descriptor length incorrect, cbDesc=%u, Urb.cbData=%u, cbHint=%u\n", cbDesc, Urb.cbData, cbHint));
Note:
See TracChangeset
for help on using the changeset viewer.