Author: cgutman
Date: Sat Mar 3 20:17:29 2012
New Revision: 55971
URL:
http://svn.reactos.org/svn/reactos?rev=55971&view=rev
Log:
[LIBUSB]
- Don't assert that the clear stall will complete successfully since it may be sent
for a removal
- Fixes removal surprise removal of HID devices
Modified:
trunk/reactos/lib/drivers/libusb/hub_controller.cpp
Modified: trunk/reactos/lib/drivers/libusb/hub_controller.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/libusb/hub_con…
==============================================================================
--- trunk/reactos/lib/drivers/libusb/hub_controller.cpp [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/libusb/hub_controller.cpp [iso-8859-1] Sat Mar 3 20:17:29
2012
@@ -1802,8 +1802,8 @@
//
// reset data toggle
//
- ASSERT(NT_SUCCESS(Status));
- EndpointDescriptor->DataToggle = 0x0;
+ if (NT_SUCCESS(Status))
+ EndpointDescriptor->DataToggle = 0x0;
//
// done