https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bac4e185fb69e011049132ff9a2165f45e54eec3

commit bac4e185fb69e011049132ff9a2165f45e54eec3
Author:     Eric Kohl <[email protected]>
AuthorDate: Sat Mar 21 13:12:53 2020 +0100
Commit:     Eric Kohl <[email protected]>
CommitDate: Sat Mar 21 13:23:21 2020 +0100

    [USBHUB] Set the Removable flag for all ports of a USB hub
---
 drivers/usb/usbhub/pnp.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/usb/usbhub/pnp.c b/drivers/usb/usbhub/pnp.c
index 5607faa0db1..e7203027cf0 100644
--- a/drivers/usb/usbhub/pnp.c
+++ b/drivers/usb/usbhub/pnp.c
@@ -2704,6 +2704,9 @@ USBH_PdoPnP(IN PUSBHUB_PORT_PDO_EXTENSION PortExtension,
             DeviceCapabilities->Size = Size;
             DeviceCapabilities->Version = Version;
 
+            /* All devices connected to a hub are removable */
+            DeviceCapabilities->Removable = 1;
+
             Status = STATUS_SUCCESS;
             break;
 

Reply via email to