[PCIIDEX] Properly handle unknown PNP IRPs. CORE-13944
[reactos.git] / drivers / storage / ide / pciidex / pdo.c
index af41e5f..c82d9d7 100644 (file)
@@ -428,8 +428,7 @@ PciIdeXPdoPnpDispatch(
                                {
                                        DPRINT1("IRP_MJ_PNP / IRP_MN_QUERY_DEVICE_RELATIONS / Unknown type 0x%lx\n",
                                                Stack->Parameters.QueryDeviceRelations.Type);
                                {
                                        DPRINT1("IRP_MJ_PNP / IRP_MN_QUERY_DEVICE_RELATIONS / Unknown type 0x%lx\n",
                                                Stack->Parameters.QueryDeviceRelations.Type);
-                                       ASSERT(FALSE);
-                                       Status = STATUS_NOT_SUPPORTED;
+                                       Status = Irp->IoStatus.Status;
                                        break;
                                }
                        }
                                        break;
                                }
                        }
@@ -526,7 +525,6 @@ PciIdeXPdoPnpDispatch(
                        /* We can't forward request to the lower driver, because
                         * we are a Pdo, so we don't have lower driver... */
                        DPRINT1("IRP_MJ_PNP / Unknown minor function 0x%lx\n", MinorFunction);
                        /* We can't forward request to the lower driver, because
                         * we are a Pdo, so we don't have lower driver... */
                        DPRINT1("IRP_MJ_PNP / Unknown minor function 0x%lx\n", MinorFunction);
-                       ASSERT(FALSE);
                        Information = Irp->IoStatus.Information;
                        Status = Irp->IoStatus.Status;
                }
                        Information = Irp->IoStatus.Information;
                        Status = Irp->IoStatus.Status;
                }