VirtualBox

Ignore:
Timestamp:
May 7, 2011 8:40:48 PM (14 years ago)
Author:
vboxsync
Message:

usb: yet another device capture filter logic fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbFlt.cpp

    r36998 r36999  
    518518        else
    519519        {
    520             /* the device is currently filtered, we should release it only if it is NOT grabbed by a one-shot filter */
    521             if (!pDevice->pOwner || !pDevice->fIsFilterOneShot)
     520            /* the device is currently filtered, we should release it only if
     521             * 1. device does not have an owner
     522             * or
     523             * 2. it should be released bue to a one-shot filter
     524             * or
     525             * 3. it is NOT grabbed by a one-shot filter */
     526            if (!pDevice->pOwner || fIsOneShot || !pDevice->fIsFilterOneShot)
    522527            {
    523528                bNeedReplug = true;
     
    556561        else
    557562        {
    558             /* the device is currently NOT filtered, we should replug it only if it is NOT grabbed by a one-shot filter */
    559             if (!pDevice->pOwner || !pDevice->fIsFilterOneShot)
     563            /* the device is currently NOT filtered,
     564             * we should replug it only if
     565             * 1. device does not have an owner
     566             * or
     567             * 2. it should be captured due to a one-shot filter
     568             * or
     569             * 3. it is NOT released by a one-shot filter */
     570            if (!pDevice->pOwner || fIsOneShot || !pDevice->fIsFilterOneShot)
    560571            {
    561572                bNeedReplug = true;
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