diff --git a/dlls/hidclass.sys/pnp.c b/dlls/hidclass.sys/pnp.c index 7df83741754..81514c00c13 100644 --- a/dlls/hidclass.sys/pnp.c +++ b/dlls/hidclass.sys/pnp.c @@ -256,8 +256,7 @@ NTSTATUS WINAPI HID_PNP_Dispatch(DEVICE_OBJECT *device, IRP *irp) case IRP_MN_REMOVE_DEVICE: { HID_DeleteDevice(&minidriver->minidriver, device); - minidriver->PNPDispatch(device, irp); - break; + return minidriver->PNPDispatch(device, irp); } default: {