Zebediah Figura : hidclass.sys: Detach the HID device before deleting it.
Alexandre Julliard
julliard at winehq.org
Thu Jun 27 15:33:56 CDT 2019
Module: wine
Branch: master
Commit: 878a1f5ceacdd2c495522675cf9a74e7ecf0359d
URL: https://source.winehq.org/git/wine.git/?a=commit;h=878a1f5ceacdd2c495522675cf9a74e7ecf0359d
Author: Zebediah Figura <z.figura12 at 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 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at 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);
}
More information about the wine-cvs
mailing list