- Do not assert on failed devices

- CORE-6794

svn path=/trunk/; revision=57794
This commit is contained in:
Johannes Anderwald 2012-12-04 04:34:12 +00:00
parent fe2efe05a0
commit 8fc6607c24

View file

@ -1508,18 +1508,20 @@ Hid_PnpStart(
// 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;
}
}
//