https://git.reactos.org/?p=reactos.git;a=commitdiff;h=477cf902e4c89706022e1…
commit 477cf902e4c89706022e1508d2d4189a0c21afc3
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Mon Apr 1 14:04:56 2019 +0200
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Sun Apr 14 15:32:16 2019 +0200
[USBHUB_NEW] Fix inverted check in USBH_RestoreDevice.
This allows re-enabling a disabled device.
---
drivers/usb/usbhub_new/pnp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/usbhub_new/pnp.c b/drivers/usb/usbhub_new/pnp.c
index c1862574b0..723c106b4a 100644
--- a/drivers/usb/usbhub_new/pnp.c
+++ b/drivers/usb/usbhub_new/pnp.c
@@ -2068,7 +2068,7 @@ USBH_RestoreDevice(IN PUSBHUB_PORT_PDO_EXTENSION PortExtension,
ASSERT(PortExtension->PortNumber > 0);
PortData = &HubExtension->PortData[PortExtension->PortNumber - 1];
- if (PortExtension->Common.SelfDevice == PortData->DeviceObject)
+ if (PortExtension->Common.SelfDevice != PortData->DeviceObject)
{
Status = STATUS_UNSUCCESSFUL;
return Status;