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
1 changed files with 1 additions and 0 deletions

View File

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