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>
This commit is contained in:
parent
72f298e3f7
commit
878a1f5cea
|
@ -202,6 +202,7 @@ void HID_DeleteDevice(DEVICE_OBJECT *device)
|
||||||
HeapFree(GetProcessHeap(), 0, ext->device_name);
|
HeapFree(GetProcessHeap(), 0, ext->device_name);
|
||||||
RtlFreeUnicodeString(&ext->link_name);
|
RtlFreeUnicodeString(&ext->link_name);
|
||||||
|
|
||||||
|
IoDetachDevice(ext->deviceExtension.NextDeviceObject);
|
||||||
IoDeleteDevice(device);
|
IoDeleteDevice(device);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue