mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 03:05:50 +00:00
[PARPORT]
- Initialize DeviceRelations->Count in FdoQueryBusRelations - Don't fake success for unsupported PNP minor functions, it makes the kernel very unhappy Powered by Special Pool svn path=/trunk/; revision=69900
This commit is contained in:
parent
ad4ae38293
commit
87a055b175
2 changed files with 4 additions and 3 deletions
|
@ -371,6 +371,7 @@ FdoQueryBusRelations(
|
||||||
i = 0;
|
i = 0;
|
||||||
ObReferenceObject(DeviceExtension->AttachedRawPdo);
|
ObReferenceObject(DeviceExtension->AttachedRawPdo);
|
||||||
DeviceRelations->Objects[i] = DeviceExtension->AttachedRawPdo;
|
DeviceRelations->Objects[i] = DeviceExtension->AttachedRawPdo;
|
||||||
|
DeviceRelations->Count = 1;
|
||||||
|
|
||||||
Irp->IoStatus.Information = (ULONG_PTR)DeviceRelations;
|
Irp->IoStatus.Information = (ULONG_PTR)DeviceRelations;
|
||||||
|
|
||||||
|
|
|
@ -161,12 +161,12 @@ NTAPI
|
||||||
PdoPnp(IN PDEVICE_OBJECT DeviceObject,
|
PdoPnp(IN PDEVICE_OBJECT DeviceObject,
|
||||||
IN PIRP Irp)
|
IN PIRP Irp)
|
||||||
{
|
{
|
||||||
|
NTSTATUS Status;
|
||||||
DPRINT("PdoPnp()\n");
|
DPRINT("PdoPnp()\n");
|
||||||
|
|
||||||
Irp->IoStatus.Information = 0;
|
Status = Irp->IoStatus.Status;
|
||||||
Irp->IoStatus.Status = STATUS_SUCCESS;
|
|
||||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||||
return STATUS_SUCCESS;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue