Changeset 38424 in vbox for trunk/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbFlt.cpp
- Timestamp:
- Aug 11, 2011 6:50:43 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbFlt.cpp
r38356 r38424 854 854 VBOXUSBFLT_LOCK_RELEASE(); 855 855 LOG(("Matching Info: Filter (0x%p), pCtx(0x%p), fFilter(%d), fIsOneShot(%d)", uId, pCtx, (int)fFilter, (int)fIsOneShot)); 856 if ( !fFilter)856 if (fFilter) 857 857 { 858 LOG(("Matching: This device should NOT be filtered")); 859 /* this device should not be filtered, and it's not */ 860 ObDereferenceObject(pDevObj); 861 pDevRelations->Objects[k] = NULL; 862 --cReplugPdos; 863 Assert((uint32_t)cReplugPdos < UINT32_MAX/2); 858 LOG(("Matching: This device SHOULD be filtered")); 859 /* this device needs to be filtered, but it's not, 860 * leave the PDO in array to issue a replug request for it 861 * later on */ 864 862 continue; 865 863 } 866 867 LOG(("Matching: This device SHOULD be filtered"));868 /* this device needs to be filtered, but it's not,869 * leave the PDO in array to issue a replug request for it870 * later on */871 872 864 } 873 865 else … … 875 867 WARN(("vboxUsbFltDevPopulate for PDO 0x%p failed with Status 0x%x", pDevObj, Status)); 876 868 } 869 870 LOG(("Matching: This device should NOT be filtered")); 871 /* this device should not be filtered, and it's not */ 872 ObDereferenceObject(pDevObj); 873 pDevRelations->Objects[k] = NULL; 874 --cReplugPdos; 875 ASSERT_WARN((uint32_t)cReplugPdos < UINT32_MAX/2, ("cReplugPdos is %d", cReplugPdos)); 877 876 } 878 877
Note:
See TracChangeset
for help on using the changeset viewer.