Changeset 62719 in vbox for trunk/src/VBox/HostDrivers/VBoxUSB/win
- Timestamp:
- Jul 29, 2016 10:12:45 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 109293
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbMon.cpp
r62715 r62719 913 913 switch(pSl->Parameters.QueryDeviceRelations.Type) 914 914 { 915 case BusRelations: 916 { 917 LOG(("BusRelations")); 918 919 if (pIoStatus->Status == STATUS_SUCCESS) 920 { 921 PDEVICE_RELATIONS pRel = (PDEVICE_RELATIONS)pIoStatus->Information; 922 LOG(("pRel = %p", pRel)); 923 if (VALID_PTR(pRel)) 915 case BusRelations: 916 LOG(("BusRelations")); 917 918 if (pIoStatus->Status == STATUS_SUCCESS) 924 919 { 925 for (unsigned i=0;i<pRel->Count;i++) 920 PDEVICE_RELATIONS pRel = (PDEVICE_RELATIONS)pIoStatus->Information; 921 LOG(("pRel = %p", pRel)); 922 if (VALID_PTR(pRel)) 926 923 { 927 if (VBoxUsbFltPdoIsFiltered(pDevObj)) 928 LOG(("New PDO %p", pRel->Objects[i])); 924 for (unsigned i=0;i<pRel->Count;i++) 925 { 926 if (VBoxUsbFltPdoIsFiltered(pDevObj)) 927 LOG(("New PDO %p", pRel->Objects[i])); 928 } 929 929 } 930 else 931 LOG(("Invalid pointer %p", pRel)); 930 932 } 931 else 932 LOG(("Invalid pointer %p", pRel)); 933 } 934 break; 935 } 936 case TargetDeviceRelation: 937 LOG(("TargetDeviceRelation")); 938 break; 939 case RemovalRelations: 940 LOG(("RemovalRelations")); 941 break; 942 case EjectionRelations: 943 LOG(("EjectionRelations")); 944 break; 933 break; 934 case TargetDeviceRelation: 935 LOG(("TargetDeviceRelation")); 936 break; 937 case RemovalRelations: 938 LOG(("RemovalRelations")); 939 break; 940 case EjectionRelations: 941 LOG(("EjectionRelations")); 942 break; 943 default: 944 LOG(("QueryDeviceRelations.Type=%d", pSl->Parameters.QueryDeviceRelations.Type)); 945 945 } 946 946 break; … … 1595 1595 } 1596 1596 1597 static NTSTATUS vboxUsbMonIoctlDispatch(PVBOXUSBMONCTX pContext, ULONG Ctl, PVOID pvBuffer, ULONG cbInBuffer, ULONG cbOutBuffer, ULONG_PTR* pInfo) 1597 static NTSTATUS vboxUsbMonIoctlDispatch(PVBOXUSBMONCTX pContext, ULONG Ctl, PVOID pvBuffer, ULONG cbInBuffer, 1598 ULONG cbOutBuffer, ULONG_PTR *pInfo) 1598 1599 { 1599 1600 NTSTATUS Status = STATUS_SUCCESS; … … 1659 1660 { 1660 1661 /* we've validated that already */ 1661 Assert(cbOutBuffer == *pRc);1662 Assert(cbOutBuffer == (ULONG)*pRc); 1662 1663 *pRc = rc; 1663 1664 Info = sizeof (*pRc);
Note:
See TracChangeset
for help on using the changeset viewer.