[USBHUB_NEW] Fix inverted check in USBH_RestoreDevice.

This allows re-enabling a disabled device.
This commit is contained in:
Thomas Faber 2019-04-01 14:04:56 +02:00
parent 46b0f6d9de
commit 477cf902e4
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -2068,7 +2068,7 @@ USBH_RestoreDevice(IN PUSBHUB_PORT_PDO_EXTENSION PortExtension,
ASSERT(PortExtension->PortNumber > 0); ASSERT(PortExtension->PortNumber > 0);
PortData = &HubExtension->PortData[PortExtension->PortNumber - 1]; PortData = &HubExtension->PortData[PortExtension->PortNumber - 1];
if (PortExtension->Common.SelfDevice == PortData->DeviceObject) if (PortExtension->Common.SelfDevice != PortData->DeviceObject)
{ {
Status = STATUS_UNSUCCESSFUL; Status = STATUS_UNSUCCESSFUL;
return Status; return Status;