VirtualBox

Changeset 38441 in vbox


Ignore:
Timestamp:
Aug 12, 2011 4:25:06 PM (13 years ago)
Author:
vboxsync
Message:

Main/USB: do not propagate remote filter to USBProxyService for all platforms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/USBControllerImpl.cpp

    r38432 r38441  
    535535    /* notify the proxy (only when it makes sense) */
    536536    if (filter->getData().mActive && Global::IsOnline(adep.machineState())
    537 #ifdef RT_OS_WINDOWS
    538         && filter->getData().mRemote.isMatch (false)
    539 #endif
    540     )
     537        && filter->getData().mRemote.isMatch (false))
    541538    {
    542539        USBProxyService *service = m->pHost->usbProxyService();
     
    610607    /* notify the proxy (only when it makes sense) */
    611608    if (filter->getData().mActive && Global::IsOnline(adep.machineState())
    612 #ifdef RT_OS_WINDOWS
    613         && filter->getData().mRemote.isMatch (false)
    614 #endif
    615     )
     609        && filter->getData().mRemote.isMatch (false))
    616610    {
    617611        USBProxyService *service = m->pHost->usbProxyService();
     
    777771                if ((*it)->getData().mActive &&
    778772                    Global::IsOnline (adep.machineState())
    779 #ifdef RT_OS_WINDOWS
    780                     && (*it)->getData().mRemote.isMatch (false)
    781 #endif
    782                 )
     773                    && (*it)->getData().mRemote.isMatch (false))
    783774                {
    784775                    USBDeviceFilter *filter = *it;
     
    805796                    /* notify the proxy (only when necessary) */
    806797                    if ((*it)->getData().mActive
    807 #ifdef RT_OS_WINDOWS
    808                             && (*it)->getData().mRemote.isMatch (false)
    809 #endif
    810                             )
     798                            && (*it)->getData().mRemote.isMatch (false))
    811799                    {
    812800                        USBDeviceFilter *flt = *it; /* resolve ambiguity */
     
    10301018        if (aActiveChanged)
    10311019        {
    1032 #ifdef RT_OS_WINDOWS
    10331020            if (aFilter->getData().mRemote.isMatch (false))
    1034 #endif
    10351021            {
    10361022                /* insert/remove the filter from the proxy */
     
    10551041                ComAssertRet(aFilter->getId() != NULL, E_FAIL);
    10561042                service->removeFilter(aFilter->getId());
    1057 #ifdef RT_OS_WINDOWS
    10581043                if (aFilter->getData().mRemote.isMatch (false))
    1059 #endif
    10601044                {
    10611045                    aFilter->getId() = service->insertFilter(&aFilter->getData().mUSBFilter);
     
    12371221        /* notify the proxy (only if the filter is active) */
    12381222        if (flt->getData().mActive
    1239 #ifdef RT_OS_WINDOWS
    12401223                && flt->getData().mRemote.isMatch (false) /* and if the filter is NOT remote */
    1241 #endif
    12421224                )
    12431225        {
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