hidclass.sys: Detach the HID device before deleting it.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Zebediah Figura 2019-06-26 22:29:23 -05:00 committed by Alexandre Julliard
parent 72f298e3f7
commit 878a1f5cea
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}