VirtualBox

Changeset 53633 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 2, 2015 10:42:00 AM (10 years ago)
Author:
vboxsync
Message:

USB: fix debug assertion

Location:
trunk/src/VBox/Devices/USB
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/VUSBDevice.cpp

    r53210 r53633  
    10531053
    10541054        LogFlow(("%s: vusbDevCancelAllUrbs: CANCELING URB\n", pUrb->pszDesc));
    1055         vusbUrbCancelWorker(pUrb, CANCELMODE_FAIL);
     1055        int rc = vusbUrbCancelWorker(pUrb, CANCELMODE_FAIL);
     1056        AssertRC(rc);
    10561057        pUrb = pNext;
    10571058    }
  • trunk/src/VBox/Devices/USB/VUSBInternal.h

    r53211 r53633  
    459459DECLHIDDEN(int) vusbDevIoThreadExec(PVUSBDEV pDev, uint32_t fFlags, PFNRT pfnFunction, unsigned cArgs, ...);
    460460DECLHIDDEN(int) vusbDevIoThreadExecSync(PVUSBDEV pDev, PFNRT pfnFunction, unsigned cArgs, ...);
    461 DECLHIDDEN(void) vusbUrbCancelWorker(PVUSBURB pUrb, CANCELMODE enmMode);
     461DECLHIDDEN(int) vusbUrbCancelWorker(PVUSBURB pUrb, CANCELMODE enmMode);
    462462
    463463void vusbUrbCompletionReadAhead(PVUSBURB pUrb);
  • trunk/src/VBox/Devices/USB/VUSBUrb.cpp

    r53162 r53633  
    20802080 * The worker for vusbUrbCancel() which is executed on the I/O thread.
    20812081 *
    2082  * @returns nothing.
     2082 * @returns IPRT status code.
    20832083 * @param   pUrb        The URB to cancel.
    20842084 * @param   enmMode     The way the URB should be canceled.
    20852085 */
    2086 DECLHIDDEN(void) vusbUrbCancelWorker(PVUSBURB pUrb, CANCELMODE enmMode)
     2086DECLHIDDEN(int) vusbUrbCancelWorker(PVUSBURB pUrb, CANCELMODE enmMode)
    20872087{
    20882088    vusbUrbAssert(pUrb);
     
    21372137        }
    21382138    }
     2139    return VINF_SUCCESS;
    21392140}
    21402141
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette