VirtualBox

Changeset 50245 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jan 27, 2014 2:01:19 PM (11 years ago)
Author:
vboxsync
Message:

USBProxyDevice: Fix broken passthrough, pfnSetConfig returns a status code now and not a boolean success indicator

File:
1 edited

Legend:

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

    r50234 r50245  
    590590    {
    591591        pProxyDev->cIgnoreSetConfigs = 0;
    592         if (!pProxyDev->pOps->pfnSetConfig(pProxyDev, bConfigurationValue))
     592        int rc = pProxyDev->pOps->pfnSetConfig(pProxyDev, bConfigurationValue);
     593        if (RT_FAILURE(rc))
    593594        {
    594595            pProxyDev->iActiveCfg = -1;
    595             return VERR_GENERAL_FAILURE;
     596            return rc;
    596597        }
    597598        pProxyDev->iActiveCfg = bConfigurationValue;
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