Changeset 62698 in vbox for trunk/src/VBox/HostDrivers/VBoxUSB/win/dev
- Timestamp:
- Jul 29, 2016 3:58:55 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxUSB/win/dev/VBoxUsbDev.cpp
r62697 r62698 197 197 { 198 198 PVBOXUSBDEV_EXT pDevExt = (PVBOXUSBDEV_EXT)pDeviceObject->DeviceExtension; 199 NTSTATUS Status = STATUS_INVALID_HANDLE;200 199 if (vboxUsbDdiStateRetainIfStarted(pDevExt)) 201 {202 200 return vboxUsbRtDispatch(pDevExt, pIrp); 203 } 204 else 205 { 206 Status = STATUS_INVALID_DEVICE_STATE; 207 } 208 209 Status = VBoxDrvToolIoComplete(pIrp, Status, 0); 210 return Status; 201 return VBoxDrvToolIoComplete(pIrp, STATUS_INVALID_DEVICE_STATE, 0); 211 202 } 212 203 … … 214 205 { 215 206 RT_NOREF1(pDeviceObject); 216 NTSTATUS Status = STATUS_SUCCESS; 217 Status = VBoxDrvToolIoComplete(pIrp, Status, 0); 218 return Status; 207 return VBoxDrvToolIoComplete(pIrp, STATUS_SUCCESS, 0); 219 208 } 220 209 … … 228 217 } 229 218 230 NTSTATUS Status = STATUS_ACCESS_DENIED; 231 Status = VBoxDrvToolIoComplete(pIrp, Status, 0); 219 NTSTATUS Status = VBoxDrvToolIoComplete(pIrp, STATUS_ACCESS_DENIED, 0); 232 220 233 221 vboxUsbDdiStateRelease(pDevExt);
Note:
See TracChangeset
for help on using the changeset viewer.