ntoskrnl.exe: Handle some no-op PnP requests.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2019-06-25 21:35:15 -05:00 committed by Alexandre Julliard
parent 46bb907d3a
commit 13e9d43127
1 changed files with 12 additions and 0 deletions

View File

@ -785,6 +785,18 @@ static NTSTATUS WINAPI pnp_manager_device_pnp( DEVICE_OBJECT *device, IRP *irp )
TRACE("device %p, irp %p, minor function %#x.\n", device, irp, stack->MinorFunction);
switch (stack->MinorFunction)
{
case IRP_MN_START_DEVICE:
case IRP_MN_SURPRISE_REMOVAL:
case IRP_MN_REMOVE_DEVICE:
/* Nothing to do. */
irp->IoStatus.u.Status = STATUS_SUCCESS;
break;
default:
FIXME("Unhandled PnP request %#x.\n", stack->MinorFunction);
}
IoCompleteRequest( irp, IO_NO_INCREMENT );
return irp->IoStatus.u.Status;
}