hidclass.sys: Stop accepting IRPs after device removal.
commitfb7a5e660e354c9a87b4f32a4779cf65adc5bb50
authorRémi Bernon <rbernon@codeweavers.com>
Thu, 1 Jul 2021 16:53:25 +0000 (1 18:53 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 1 Jul 2021 20:34:31 +0000 (1 22:34 +0200)
treee90399067a3e896fb4fd06c78226ef2a72593141
parent0b9d1d9ffbec57fa0642d33c06a4ff6a5bf54f8e
hidclass.sys: Stop accepting IRPs after device removal.

Handle IRP_MN_SURPRISE_REMOVAL and notify device thread to stop it, but
only wait for it in IRP_MN_REMOVE_DEVICE, as it's probably waiting for
an IRP sent to the lower driver, which needs to be notified of removal
too first.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/hidclass.sys/device.c
dlls/hidclass.sys/hid.h
dlls/hidclass.sys/pnp.c