[USBHID] Do not assert if the device was unplugged during an operation.

This commit is contained in:
Victor Perevertkin 2019-04-01 04:00:52 +03:00
parent 911031e840
commit 5f4cf8a716

View file

@ -453,7 +453,7 @@ HidUsb_ReadReportCompletion(
// //
// FIXME handle error // FIXME handle error
// //
ASSERT(Urb->UrbHeader.Status == USBD_STATUS_SUCCESS); ASSERT(Urb->UrbHeader.Status == USBD_STATUS_SUCCESS || Urb->UrbHeader.Status == USBD_STATUS_DEVICE_GONE);
// //
// free the urb // free the urb