Rémi Bernon : hidclass.sys: Disable the keyboard device interface on removal.

Alexandre Julliard julliard at winehq.org
Wed Jun 30 16:11:00 CDT 2021


Module: wine
Branch: master
Commit: 9a56ba033685d7b8d5a726cf8801ac17758e1cbd
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=9a56ba033685d7b8d5a726cf8801ac17758e1cbd

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Tue Jun 29 11:47:31 2021 +0200

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

Instead of enabling it.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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)
             {




More information about the wine-cvs mailing list