Changeset 38441 in vbox
- Timestamp:
- Aug 12, 2011 4:25:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/USBControllerImpl.cpp
r38432 r38441 535 535 /* notify the proxy (only when it makes sense) */ 536 536 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)) 541 538 { 542 539 USBProxyService *service = m->pHost->usbProxyService(); … … 610 607 /* notify the proxy (only when it makes sense) */ 611 608 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)) 616 610 { 617 611 USBProxyService *service = m->pHost->usbProxyService(); … … 777 771 if ((*it)->getData().mActive && 778 772 Global::IsOnline (adep.machineState()) 779 #ifdef RT_OS_WINDOWS 780 && (*it)->getData().mRemote.isMatch (false) 781 #endif 782 ) 773 && (*it)->getData().mRemote.isMatch (false)) 783 774 { 784 775 USBDeviceFilter *filter = *it; … … 805 796 /* notify the proxy (only when necessary) */ 806 797 if ((*it)->getData().mActive 807 #ifdef RT_OS_WINDOWS 808 && (*it)->getData().mRemote.isMatch (false) 809 #endif 810 ) 798 && (*it)->getData().mRemote.isMatch (false)) 811 799 { 812 800 USBDeviceFilter *flt = *it; /* resolve ambiguity */ … … 1030 1018 if (aActiveChanged) 1031 1019 { 1032 #ifdef RT_OS_WINDOWS1033 1020 if (aFilter->getData().mRemote.isMatch (false)) 1034 #endif1035 1021 { 1036 1022 /* insert/remove the filter from the proxy */ … … 1055 1041 ComAssertRet(aFilter->getId() != NULL, E_FAIL); 1056 1042 service->removeFilter(aFilter->getId()); 1057 #ifdef RT_OS_WINDOWS1058 1043 if (aFilter->getData().mRemote.isMatch (false)) 1059 #endif1060 1044 { 1061 1045 aFilter->getId() = service->insertFilter(&aFilter->getData().mUSBFilter); … … 1237 1221 /* notify the proxy (only if the filter is active) */ 1238 1222 if (flt->getData().mActive 1239 #ifdef RT_OS_WINDOWS1240 1223 && flt->getData().mRemote.isMatch (false) /* and if the filter is NOT remote */ 1241 #endif1242 1224 ) 1243 1225 {
Note:
See TracChangeset
for help on using the changeset viewer.