Author: janderwald
Date: Tue Dec 4 04:34:12 2012
New Revision: 57794
URL:
http://svn.reactos.org/svn/reactos?rev=57794&view=rev
Log:
- Do not assert on failed devices
- CORE-6794
Modified:
trunk/reactos/drivers/hid/hidusb/hidusb.c
Modified: trunk/reactos/drivers/hid/hidusb/hidusb.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/hid/hidusb/hidusb.…
==============================================================================
--- trunk/reactos/drivers/hid/hidusb/hidusb.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/hid/hidusb/hidusb.c [iso-8859-1] Tue Dec 4 04:34:12 2012
@@ -1508,18 +1508,20 @@
// select configuration
//
Status = Hid_SelectConfiguration(DeviceObject);
- ASSERT(Status == STATUS_SUCCESS);
//
// done
//
DPRINT("[HIDUSB] SelectConfiguration %x\n", Status);
- //
- // get protocol
- //
- Hid_GetProtocol(DeviceObject);
- return Status;
+ if (NT_SUCCESS(Status))
+ {
+ //
+ // get protocol
+ //
+ Hid_GetProtocol(DeviceObject);
+ return Status;
+ }
}
//