[PCIIDEX] Properly handle unknown PNP IRPs. CORE-13944

This commit is contained in:
Thomas Faber 2017-11-12 14:31:20 +01:00
parent 8503842309
commit ed95fa19f0
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -428,8 +428,7 @@ PciIdeXPdoPnpDispatch(
{ {
DPRINT1("IRP_MJ_PNP / IRP_MN_QUERY_DEVICE_RELATIONS / Unknown type 0x%lx\n", DPRINT1("IRP_MJ_PNP / IRP_MN_QUERY_DEVICE_RELATIONS / Unknown type 0x%lx\n",
Stack->Parameters.QueryDeviceRelations.Type); Stack->Parameters.QueryDeviceRelations.Type);
ASSERT(FALSE); Status = Irp->IoStatus.Status;
Status = STATUS_NOT_SUPPORTED;
break; break;
} }
} }
@ -526,7 +525,6 @@ PciIdeXPdoPnpDispatch(
/* We can't forward request to the lower driver, because /* We can't forward request to the lower driver, because
* we are a Pdo, so we don't have lower driver... */ * we are a Pdo, so we don't have lower driver... */
DPRINT1("IRP_MJ_PNP / Unknown minor function 0x%lx\n", MinorFunction); DPRINT1("IRP_MJ_PNP / Unknown minor function 0x%lx\n", MinorFunction);
ASSERT(FALSE);
Information = Irp->IoStatus.Information; Information = Irp->IoStatus.Information;
Status = Irp->IoStatus.Status; Status = Irp->IoStatus.Status;
} }