VirtualBox

Changeset 7828 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 9, 2008 12:29:36 PM (17 years ago)
Author:
vboxsync
Message:

Fixed bug in a VBOX_WITH_USBFILTER case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/HostUSBDeviceImpl.cpp

    r7788 r7828  
    929929
    930930#else  /* VBOX_WITH_USBFILTER */
    931     if (USBFilterMatchDevice (&aData.mUSBFilter, mUsb))
    932     {
    933         /* Don't match busy devices with a 100% wildcard filter - this will
    934            later become a filter prop (ring-3 only). */
    935         if (    mUsb->enmState == USBDEVICESTATE_USED_BY_HOST_CAPTURABLE
    936             &&  !USBFilterHasAnySubstatialCriteria (&aData.mUSBFilter))
    937             return false;
    938     }
     931    if (!USBFilterMatchDevice (&aData.mUSBFilter, mUsb))
     932        return false;
     933
     934    /* Don't match busy devices with a 100% wildcard filter - this will
     935       later become a filter prop (ring-3 only). */
     936    if (    mUsb->enmState == USBDEVICESTATE_USED_BY_HOST_CAPTURABLE
     937        &&  !USBFilterHasAnySubstatialCriteria (&aData.mUSBFilter))
     938        return false;
    939939#endif /* VBOX_WITH_USBFILTER */
    940940
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