hidclass.sys: Disable the keyboard device interface on removal.

Instead of enabling it.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2021-06-29 11:47:31 +02:00 committed by Alexandre Julliard
parent ab8f8258a5
commit 9a56ba0336
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ static NTSTATUS pdo_pnp(DEVICE_OBJECT *device, IRP *irp)
if (ext->u.pdo.is_mouse)
IoSetDeviceInterfaceState(&ext->u.pdo.mouse_link_name, FALSE);
if (ext->u.pdo.is_keyboard)
IoSetDeviceInterfaceState(&ext->u.pdo.keyboard_link_name, TRUE);
IoSetDeviceInterfaceState(&ext->u.pdo.keyboard_link_name, FALSE);
if (ext->u.pdo.thread)
{