[HIDCLASS]

- Don't assert on initialization error

svn path=/trunk/; revision=57807
This commit is contained in:
Johannes Anderwald 2012-12-06 02:09:54 +00:00
parent fae75d1fc7
commit 704fb912be

View file

@ -357,7 +357,13 @@ HidClassFDO_StartDevice(
//
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