- Timestamp:
- Sep 23, 2019 9:25:12 AM (5 years ago)
- Location:
- trunk/src/VBox/HostDrivers/VBoxUSB/win/mon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbFlt.cpp
r80891 r80941 1222 1222 NTSTATUS VBoxUsbFltGetDevice(PVBOXUSBFLTCTX pContext, HVBOXUSBDEVUSR hDevice, PUSBSUP_GETDEV_MON pInfo) 1223 1223 { 1224 Assert(hDevice); 1224 if (!hDevice) 1225 return STATUS_INVALID_PARAMETER; 1225 1226 1226 1227 memset (pInfo, 0, sizeof (*pInfo)); … … 1245 1246 VBOXUSBFLT_LOCK_RELEASE(); 1246 1247 1247 /* this should not occur */ 1248 AssertFailed(); 1249 1248 /* We should not get this far with valid input. */ 1250 1249 return STATUS_INVALID_PARAMETER; 1251 1250 } -
trunk/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbMon.cpp
r80891 r80941 1225 1225 if (!pvBuffer || cbInBuffer != sizeof (hDevice) || cbOutBuffer < sizeof (*pOut)) 1226 1226 { 1227 WARN(("SUPUSBFLT_IOCTL_GET_DEVICE: Invalid input/output sizes. cbIn=%d expected %d. cbOut=%d expected >= %d.", 1227 WARN(("SUPUSBFLT_IOCTL_GET_DEVICE: Invalid input/output sizes! cbIn=%d expected %d. cbOut=%d expected >= %d.", 1228 cbInBuffer, sizeof (hDevice), cbOutBuffer, sizeof (*pOut))); 1229 Status = STATUS_INVALID_PARAMETER; 1230 break; 1231 } 1232 if (!hDevice) 1233 { 1234 WARN(("SUPUSBFLT_IOCTL_GET_DEVICE: hDevice is NULL!", 1228 1235 cbInBuffer, sizeof (hDevice), cbOutBuffer, sizeof (*pOut))); 1229 1236 Status = STATUS_INVALID_PARAMETER;
Note:
See TracChangeset
for help on using the changeset viewer.