Changeset 53168 in vbox
- Timestamp:
- Oct 31, 2014 11:42:33 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/USB/VUSBSniffer.cpp
r53163 r53168 598 598 uint32_t cbCapturedLength = sizeof(UsbHdr); 599 599 uint32_t cIsocPkts = 0; 600 uint8_t *pbData = NULL; 600 601 601 602 RTTimeNow(&TimeNow); … … 628 629 } 629 630 cbDataLength = cbUrbLength; 631 pbData = &pUrb->abData[0]; 630 632 631 633 switch (pUrb->enmType) … … 673 675 cbDataLength = 0; 674 676 } 677 else if (pUrb->enmDir == VUSBDIRECTION_SETUP) 678 cbDataLength -= sizeof(VUSBSETUP); 675 679 676 680 Epb.u32CapturedLen = cbCapturedLength + cbDataLength; … … 727 731 if ( RT_SUCCESS(rc) 728 732 && cbDataLength) 729 rc = vusbSnifferBlockAddData(pThis, p Urb->abData, pUrb->cbData);733 rc = vusbSnifferBlockAddData(pThis, pbData, cbDataLength); 730 734 731 735 if (RT_SUCCESS(rc))
Note:
See TracChangeset
for help on using the changeset viewer.