[PATCH 2/2] hidclass.sys: Disable the keyboard device interface on removal.
Rémi Bernon
rbernon at codeweavers.com
Tue Jun 29 04:47:31 CDT 2021
Instead of enabling it.
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
dlls/hidclass.sys/pnp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/hidclass.sys/pnp.c b/dlls/hidclass.sys/pnp.c
index 4953bd3bebc..5f59257cdf7 100644
--- a/dlls/hidclass.sys/pnp.c
+++ b/dlls/hidclass.sys/pnp.c
@@ -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)
{
--
2.32.0
More information about the wine-devel
mailing list