Zebediah Figura : hidclass.sys: Detach the HID device before deleting it.
Module: wine Branch: master Commit: 878a1f5ceacdd2c495522675cf9a74e7ecf0359d URL: https://source.winehq.org/git/wine.git/?a=commit;h=878a1f5ceacdd2c495522675c... Author: Zebediah Figura <z.figura12(a)gmail.com> Date: Wed Jun 26 22:29:23 2019 -0500 hidclass.sys: Detach the HID device before deleting it. Signed-off-by: Zebediah Figura <z.figura12(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/hidclass.sys/device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/hidclass.sys/device.c b/dlls/hidclass.sys/device.c index e961772..9470f7d 100644 --- a/dlls/hidclass.sys/device.c +++ b/dlls/hidclass.sys/device.c @@ -202,6 +202,7 @@ void HID_DeleteDevice(DEVICE_OBJECT *device) HeapFree(GetProcessHeap(), 0, ext->device_name); RtlFreeUnicodeString(&ext->link_name); + IoDetachDevice(ext->deviceExtension.NextDeviceObject); IoDeleteDevice(device); }
participants (1)
-
Alexandre Julliard