mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[USBHUB_NEW] Fix inverted check in USBH_RestoreDevice.
This allows re-enabling a disabled device.
This commit is contained in:
parent
46b0f6d9de
commit
477cf902e4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue