Changeset 37042 in vbox for trunk/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbFlt.cpp
- Timestamp:
- May 11, 2011 7:04:07 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbFlt.cpp
r37038 r37042 668 668 { 669 669 PDEVICE_OBJECT pDevObj = pDevRelations->Objects[k]; 670 if (!pDevObj->DriverObject671 || !pDevObj->DriverObject->DriverName.Buffer672 || !pDevObj->DriverObject->DriverName.Length)673 {674 AssertFailed();675 continue;676 }677 678 bool fIsHub = false;679 for (int z = 0; z < RT_ELEMENTS(lpszStandardControllerName); ++z)680 {681 if (!RtlCompareUnicodeString(&szStandardControllerName[z], &pDevObj->DriverObject->DriverName, TRUE /* case insensitive */))682 {683 fIsHub = true;684 break;685 }686 }687 688 if (fIsHub)689 {690 Log(("Found sub-hub, PDO 0x%p\n", pDevObj));691 continue;692 }693 670 694 671 Log(("Found existing USB PDO 0x%p\n", pDevObj)); … … 706 683 else 707 684 { 708 ObDereferenceObject(pDev Relations->Objects[k]);685 ObDereferenceObject(pDevObj); 709 686 } 710 687 … … 719 696 720 697 VBOXUSBFLT_DEVICE Device; 721 Status = vboxUsbFltDevPopulate(&Device, pDev Relations->Objects[k]/*, FALSE /* only need filter properties */);698 Status = vboxUsbFltDevPopulate(&Device, pDevObj /*, FALSE /* only need filter properties */); 722 699 if (NT_SUCCESS(Status)) 723 700 { … … 733 710 { 734 711 /* this device should not be filtered, and it's not */ 735 ObDereferenceObject(pDev Relations->Objects[k]);712 ObDereferenceObject(pDevObj); 736 713 pDevRelations->Objects[k] = NULL; 737 714 --cReplugPdos;
Note:
See TracChangeset
for help on using the changeset viewer.