winebus.sys: Return STATUS_SUCCESS from IRP_MN_SURPRISE_REMOVAL.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2021-08-12 09:46:59 +02:00 committed by Alexandre Julliard
parent 53f3cad7fb
commit 199f689ff1

View file

@ -704,6 +704,7 @@ static NTSTATUS pdo_pnp_dispatch(DEVICE_OBJECT *device, IRP *irp)
remove_pending_irps(device);
ext->removed = TRUE;
LeaveCriticalSection(&ext->cs);
status = STATUS_SUCCESS;
break;
case IRP_MN_REMOVE_DEVICE: