Author: janderwald
Date: Thu Dec 6 02:09:54 2012
New Revision: 57807
URL:
http://svn.reactos.org/svn/reactos?rev=57807&view=rev
Log:
[HIDCLASS]
- Don't assert on initialization error
Modified:
trunk/reactos/drivers/hid/hidclass/fdo.c
Modified: trunk/reactos/drivers/hid/hidclass/fdo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/hid/hidclass/fdo.c…
==============================================================================
--- trunk/reactos/drivers/hid/hidclass/fdo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/hid/hidclass/fdo.c [iso-8859-1] Thu Dec 6 02:09:54 2012
@@ -357,7 +357,13 @@
//
IoSkipCurrentIrpStackLocation(Irp);
Status = HidClassFDO_DispatchRequestSynchronous(DeviceObject, Irp);
- ASSERT(Status == STATUS_SUCCESS);
+ if (!NT_SUCCESS(Status))
+ {
+ DPRINT1("[HIDCLASS] Failed to start lower device with %x\n", Status);
+ Irp->IoStatus.Status = Status;
+ IoCompleteRequest(Irp, IO_NO_INCREMENT);
+ return Status;
+ }
//
// lets get the descriptors