mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 23:42:56 +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;
|
||||
ObReferenceObject(DeviceExtension->AttachedRawPdo);
|
||||
DeviceRelations->Objects[i] = DeviceExtension->AttachedRawPdo;
|
||||
DeviceRelations->Count = 1;
|
||||
|
||||
Irp->IoStatus.Information = (ULONG_PTR)DeviceRelations;
|
||||
|
||||
|
|
|
@ -161,12 +161,12 @@ NTAPI
|
|||
PdoPnp(IN PDEVICE_OBJECT DeviceObject,
|
||||
IN PIRP Irp)
|
||||
{
|
||||
NTSTATUS Status;
|
||||
DPRINT("PdoPnp()\n");
|
||||
|
||||
Irp->IoStatus.Information = 0;
|
||||
Irp->IoStatus.Status = STATUS_SUCCESS;
|
||||
Status = Irp->IoStatus.Status;
|
||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||
return STATUS_SUCCESS;
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue